Tip 1: The graph should be at your fingertips.
Tip 2: While explaining the solution to the interviewer, don't just jump to the most optimal solution. Start with the brute force approach, discuss its drawbacks, and then proceed step by step until you reach the optimal solution.
Tip 3: Improve your communication skills as well.
Tip 1: Mention only what is required for your profile; for example, do not stress too much on your co-curricular activities. Instead, focus on explaining more of your technical skills that are relevant to the job.
Tip 2: Keep it limited to 1 page, and make sure it is a PDF, not an image.



If a particular job has a deadline 'x', it means that it needs to be completed at any time before 'x'.
Assume that the start time is 0.
'N' = 3, Jobs = [[1, 1, 30], [2, 3, 40], [3, 2, 10]].
All the jobs have different deadlines. So we can complete all the jobs.
At time 0-1, Job 1 will complete.
At time 1-2, Job 3 will complete.
At time 2-3, Job 2 will complete.
So our answer is [3 80].
You are given a N x 2 2-D array 'Jobs' of 'N' jobs where Jobs[i][0] denote the deadline of i-th job and Jobs[i][1] denotes the profit associated with i-th job.



Down: (row+1,col)
Right: (row, col+1)
Down right diagonal: (row+1, col+1)
I started thinking in the direction that there could be multiple ways to reach the last cell, so I need to find the minimum of all these possible ways.
Now, the idea here is to think about the problem recursively and try to break it into smaller problems. This means that the problem can be broken down into smaller, simpler sub-problems until we reach a base condition.



For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].
Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].
Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].
Interval [10, 12] does not overlap with any interval.
Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
I sorted the pairs on the basis of the first interval. Then I compared the second element from the first pair with the first element from the second pair. If there was an overlap, I merged the pairs and repeated this with the next pair.



Do not print anything, just return the number of set bits in the binary representation of all integers between 1 and ‘N’.
A simple method would be to loop through all bits in an integer, check if a bit is set, and if it is, increment the set bit count.
Time Complexity: Θ(log n)
Auxiliary Space: O(1)

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