Tip 1 : Prepare with handwritten code
Tip 2 : try to solve every question with efficient time complexity
Tip 3 : Prepare good projects
Tip 1 : Write only important points and false things
Tip 2 : write only those projects ,you know about them very well
There were 3 questions in the round. level of questions is medium to hard



1. A magic index in an array A[0 ... N - 1] is defined to be an index i such that A[i] = i.
2. The elements in the array can be negative.
3. The elements in the array can be repeated multiple times.
4. There can be more than one magic index in an array.




N = 3
ARR = [ 1, -1, 0 ]
Ninja can have Rakhi with values 1 and 0 tied to his hand so that total sum is 1.
So, we output 2 as the maximum Rakhis.
They shared the online editor with me. i wrote my code here.



1. If ‘k’ is not present in 'arr', then print -1.
2. There are no duplicate elements present in 'arr'.
3. 'arr' can be rotated only in the right direction.
Input: 'arr' = [12, 15, 18, 2, 4] , 'k' = 2
Output: 3
Explanation:
If 'arr' = [12, 15, 18, 2, 4] and 'k' = 2, then the position at which 'k' is present in the array is 3 (0-indexed).



A majority element is an element that occurs more than floor('N' / 2) times in the array.
Environment is same like previous round.
Interviewer asked me some questions in sql queries like table join ,2nd max in table,indexing.
one question in dsa for 0,1,2 array sort
one design question regarding parking system



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.
This round is start with basic questions like family background,why are you leaving previous organization,why should we hire you etc
at the end CTC discussion

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