Tip 1 : Practise more DS/Algo questions mostly on Arrays, LinkedList, Trees, HashMaps, etc topics.
Tip 2 : Have good knowledge of at least one of the programming languages (like Java, Javascript, etc)
Tip 3 : Have some project experience as well.
Tip 1 : Resume should have at least one project defined.
Tip 2 : Highlight your achievements in your work experience section.







If the given array is [ 2, 3, 1], we need to return [1, 1, -1]. Because for 2, 1 is the Next Smaller element. For 3, 1 is the Next Smaller element and for 1, there is no next smaller element hence the answer for this element is -1.
Next Smaller Element : Used Stack to solve this



A mapping from Digits to Letters (just like in Nokia 1100) is shown below. Note that 1 does not map to any letter.

Letter Combinations of a Phone Number : Used backtracking to solve this



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.
Merge Sort : Used Divide & Conquer approach



NQueens : Used Backtracking



Input: 'list' = [1, 2, 3, 4], 'k' = 2
Output: 2 1 4 3
Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.
All the node values will be distinct.
K reverse linked list: Used recursive approach to solve this
This was more focussed on behavioral questions, past experience on projects, environment looking forward to working with.

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