Tip 1 : Study all the data structures and know the algorithms
Tip 2 : Do consistent coding
Tip 3 : Revise the basics
Tip 1 : make it in one page
Tip 2 : Mention skills and projects according to JD.



You are given the array ‘ARR’ = [1, 1, 1, 1, 1], ‘TARGET’ = 3. The number of ways this target can be achieved is:
1. -1 + 1 + 1 + 1 + 1 = 3
2. +1 - 1 + 1 + 1 + 1 = 3
3. +1 + 1 - 1 + 1 + 1 = 3
4. +1 + 1 + 1 - 1 + 1 = 3
5. +1 + 1 + 1 + 1 - 1 = 3
These are the 5 ways to make. Hence the answer is 5.
This method uses the Memoization Technique (an extension of the recursive approach).
This method is basically an extension to the recursive approach so that we can overcome the problem of calculating redundant cases and thus increase complexity.
We can solve this problem by simply creating a 2-D array that can store a particular state (n, w) if we get it the first time.
Now if we come across the same state (n, w) again instead of calculating it in exponential complexity we can directly return its result stored in the table in constant time.
This method gives an edge over the recursive approach in this aspect.



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
Get the element with its count in a Map
By using the Comparator Interface, compare the frequency of an elements in a given list.
Use this comparator to sort the list by implementing Collections.sort() method.
Print the sorted list.
the topic was given on site and you have to speak in it for at least a minute.



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.



The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

HR questions they as if i was willing to reallocate and why i want to join our company
So read some description about your company and use it.
Are you willing to reallocate
Tip 1 : answer with a yes
Tip 2 : Also, i share any real-life incident of how adaptive you are
Why did you decide to apply to this role
Tip 1 : Search in which tech stack company work
Tip 2 : Give some example of your interest in that tech stac.

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