Tip 1 : Focus on trees/graph problems mainly
Tip 2 : Have thorough understanding of any one project on your resume
Tip 1 : Clearly mention the tech stack and the projects done. They will pick one of them and ask about it
Tip 2 : Don't mention anything which you're unsure about in any respect



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
1. Create a hashmap which accepts integer datatype as key and value.
2. Iterate through each element in the given array starting from the first element.
3. In each iteration check if required number (required number = target sum - current number) is present in the hashmap.
4. If present, return {required number index, current number index} as result.
5. Otherwise add the current iteration number as key and its index as value to the hashmap. Repeat this until you find the result



If N = 2 and prerequisite = [[1, 2]]. Then, there are a total of 2 courses you need to take. To take course 1 you need to finish course 2. So, it is possible to complete all courses.






The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?



1. Do traversal of both the trees(any traversal) and build a string out of it. Add 'null' string on encountering NULL.
2. Check if string of first tree is present in other. Use any inbuilt function like contains. If curious, read about KMP


1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
They asked questions about two of my projects. For one, they went in depth while for other they just skimmed it,
In the end, they asked what are you most excited about for joining Rupeek? What you'll bring to table?

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