Tip 1: Fundamentals must be clear.
Tip 2: Practice speaking while writing code during the interview.
Tip 3: Be calm while answering questions and listen properly to the question.
Tip 1: Be confident while you answer.
Tip 2: Prepare your core CSE fundamentals thoroughly.
DBMS, SQL and DSA.



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.


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




Let ‘x’ be a larger integer, ‘n’ be the size of the hash table, and ‘h(x) = x mod n’ be a hash function. Then in Quadratic Probing -:
1. If we find that the index h(x), is already mapped to some other integer in the hashtable, then we try for index (h(x) + 1 * 1) mod n.
2. If the index (h(x) + 1*1) mod n, is also already mapped to some other integer in the hashtable, then we try for index (h(x) + 2 * 2) mod n.
3. If the index (h(x) + 2*2) mod n, is also already mapped to some other integer in the hashtable, then we try for index ‘(h(x) + 3 * 3) mod n.
4. We repeat this process until an unmapped index is found in the hashtable or index values start repeating.
For Example -: Consider, array ‘keys’ = {50, 49, 76, 85, 92, 73, 18}, ‘n’ = 7 and the hash function h(x) = x mod 7. Then -:
1. h(50) = 50 mod 7 = 1, thus it will be mapped to index ‘1’ in the hashtable.
2. h(49) = 49 mod 7 = 0, thus it will be mapped to index ‘0’ in hashtable.
3. h(76) = 76 mod 7 = 6, thus it will be mapped to index ‘6’ in the hashtable.
4. h(85) = 85 mod 7 = 1, thus it should be mapped to index ‘1’ in the hashtable, but index ‘1’is already mapped with 50, so we try for index (h(85) + 1*1) mod 7 = ‘2’, as index ‘2’ is not mapped previously, thus it will be mapped to index ‘2’ in hashtable’.
5. h(92) = 92 mod 7 = 1, thus it should be mapped to index ‘1’ in the hashtable, but index ‘1’ is already mapped with 50, so we try for index (h(92) + 1*1) mod 7 = 2, but index ‘2’ is also occupied so we try for index (h(92) + 2*2) mod 7 = ‘5’, as index ‘5’ is not mapped previously, thus it will be mapped to index ‘5’ in hashtable
6. h(73) = 73 mod 7 = 3, thus it will be mapped to index ‘3’ in the hashtable.
7. h(18) = 18 mod 7 = 4, thus it will be mapped to index ‘4’ in the hashtable.
Thus the resultant array ‘hashTable’ should be {49, 50, 85, 73, 18, 92, 76}.

1. Consider ‘0’ based indexing.
2. Don’t print anything, just return the integer array ‘hashTable’.
Asked for an introduction and then asked about my internship and final-year project.
After that, they asked me about OOP pillars.
What is time complexity and space complexity? (Learn)
Merge sort and Quick sort their time complexity and which one is better and why?
Followed by 1 linked-list question for which they asked my to share screen and write pseudo code.
Personality and behavioural questions.

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