Tip 1 : Solve Coding questions from geeksforgeeks
Tip 2 : Try to do puzzle questions
Tip 3 : Should have good knowledge of projects you have done
Tip 1 : Do not lie on your resume
Tip 2 : Have some good projects on it
10 MCQs were there basically on topic DSA, Oops.
Then 2 coding questions were there . They were of moderate to difficult level



a) Duplicate elements may be present.
b) If no such element is present return -1.
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.
Output: 6
Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
The idea is to sort the array in descending order and then return the second element which is not equal to the largest element from the sorted array



‘ACE’ is a subsequence of ‘ABCDE’ because ‘ACE’ can be formed by deleting ‘B’ and ‘D’ without changing the relative order of characters. ‘ADB’ is not a subsequence of ‘ABCDE’ because we can get ‘ABD’ from ‘ABCDE’ but not ‘ADB’ and in ‘ADB’ relative order of ‘B’ and ‘D’ are different from original strings.
1.Strings ‘STR1’ and ‘STR2’ consists only of English uppercases.
2.Length of string ‘STR2’ will always be greater than or equal to the length of string ‘STR1’.
For example, the given ‘STR1’ is ‘BAE’ and ‘STR2’ is ‘ABADE’.
String ‘STR1’ is a subsequence of string ‘STR2’ because ‘BAE’ can be formed by deleting ‘A’ and ‘D’ from ‘ABADE’ and the relative ordering of the characters of the string ‘ABADE’ persists.




Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory.
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Step 1. Create an auxiliary array temp[] to store unique elements.
Step 2. Traverse input array and one by one copy unique elements of arr[] to temp[]. Also keep track of count of unique elements. Let this count be j.
Step 3.Copy j elements from temp[] to arr[] and return j



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Appproach-Count the number of 0s, 1s and 2s in the given array. Then store all the 0s in the beginning followed by all the 1s then all the 2s.
Algorithm:
Step 1. Keep three counter c0 to count 0s, c1 to count 1s and c2 to count 2s
Step 2. Traverse through the array and increase the count of c0 if the element is 0,increase the count of c1 if the element is 1 and increase the count of c2 if the element is 2
Step 3. Now again traverse the array and replace first c0 elements with 0, next c1 elements with 1 and next c2 elements with 2.
It was basically a technical interview. Problems of arrays were given to solve with best approaches to get best time and space complexities. Puzzle Questions were also asked
How to measure a length of a rope using two candles



Can you do the above task in a minimum number of comparisons?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?