If you want to send email to your sales team every morning, or do you want to check the attedance of all your employee in company, how apex will help in salesforce.we will need something. Batch Class and Scheduler Apex Scheduler is used to schedule a class or bunch of task at the specific time for once or at regular interval. Batch class is the class that will be scheduled, it is a special type of class for bulk records. …

Home » Archives for March 2018

# Month: March 2018

Hi if you are computer science student you should Learn C at first. Learn C – The first program for Beginner : Here we write first code in C language. for any program, we need some library so we use #include this library is used for all functions like scanf() and printf(). main() is the function which must be in the every program. so here we begin with c. #include <stdio.h> int main(){ // this is a comment , in …

Pattern Syntax Checker Hackerrank Using Regex, we can easily match or search for patterns in a text. Before searching for a pattern, we have to specify one using some well-defined syntax. In this problem, you are given a pattern. You have to check whether the syntax of the given pattern is valid. Note: In this problem, a regex is only valid if you can compile it using the Pattern.compile method. Input Format The first line of input contains an integer …

Given N integers, count the number of pairs of integers whose difference is K. Input Format The first line contains N and K. The second line contains N numbers of the set. All the N numbers are unique. Constraints 2<=N<=105 0<=K<=109 Each integer will be greater than 0 and at least K smaller than 231-1. Output Format An integer that tells the number of pairs of integers whose difference is K. <strong>Sample Input</strong> 5 2 1 5 3 4 2 …

At HackerLand University, a passing grade is any grade 40 points or higher on a 100 point scale. Sam is a professor at the university and likes to round each student’s grade according to the following rules: If the difference between the grade and the next higher multiple of 5 is less than 3, round to the next higher multiple of 5 If the grade is less than 38, don’t bother as it’s still a failing grade Automate the rounding …

Birthday Cake Candles Hackerrank problem solution -coderInme You are in-charge of the cake for your niece’s birthday and have decided the cake will have one candle for each year of her total age. When she blows out the candles, she’ll only be able to blow out the tallest ones. Your task is to find out how many candles she can successfully blow out. For example, if your niece is turning 4 years old, and the cake will have 4 candles of height 3, 2, 1, 3, she …

Time Conversion Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock. Input Format A single string containing a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM), where 01