Tip 1 : Don’t create panic in any case in the interview , as even if you are not selected you will learn a lot from your interview experience and perform well in the future.
Tip 2 : Also I would recommend you Coding Ninjas as according to me it is a good platform to learn basic coding concepts and to practice coding.
Tip 1 : Write whatever you are sure about and have actually done that. CGPA plays a good role but not a complete role as it is just eligibility criteria for some companies.
Tip 2 : Have at least 1 or 2 good projects from which you know everything involved in the project.



If ‘ARR’ is {1,2,3,4} and ‘K’ = 4, then there exists 2 subsets with sum = 4. These are {1,3} and {4}. Hence, return true.



If an interval ends at time T and another interval starts at the same time, they are not considered overlapping intervals.
Approach (Using Sorting) :
1) Sort the list of intervals first on the basis of their start time and then iterate through the array.
2) If the start time of an interval is less than the end of the previous interval, then there is an overlap and we can return true.
3) If we iterate through the entire array without finding an overlap, we can return false.
TC : O(N * logN), where N = total number of intervals.
SC : O(N)


Input: [1,2,3,4,5]
Output: [5,4,3,2,1]




For the given binary tree:

Output: 1 2 3 4 6 7 10
Explanation: The leftmost and rightmost node respectively of each level are
Level 0: 1(only one node is present at 0th level)
Level 1: 2 3
Level 2: 4 6
Level 3: 7 10



Let ‘ARR’ be: [1, 4, -5]
The subarray [1, 4, -5] has a sum equal to 0. So the count is 1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?