Tip 1 : Be very clear with your project explanation and try to give example with the real life example .
Tip 2 : Also try to cover all the CS core subjects explanation clearly.
Tip 1: Mention your best projects
Tip 2: Highlight your achievements



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
It works on the principle of Divide and Conquer. Merge sort repeatedly divides the array into several arrays until each array consists of a single element and merging those arrays in a manner that results into a sorted array.



1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
// Base case: if the first element is 0 or if the destination is unreachable from the first element
if (N <= 1 || arr[0] == 0)
return -1;
int maxReach = arr[0], steps = arr[0], jumps = 1;
Tip 1: Understand the question well
Tip 2: Try to write the query within a minimal time



By using DP.



Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
By creating a Custom function.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?