Tip 1 : Practice programs by yourself.
Tip 2 : Projects are important source of learning.
Tip 1 : Build your resume yourself according to needs.
Tip 2 : Do not put wrong information.
We get 30 question for 30 minutes. All question had multiple choice. One question was to count the ways to reach the nth stairs mathematically. It was in the form of mcq.
N=3
We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
It was evening when my chance came. I went to HR cabin in proper discipline manner. I great him and then he ask to sit. Then I gave him my resume. He start asking basic details which are not mentioned in resume. Then He gave me one question from array (To print 3rd highest value from array without using sorting method). Then asked questions from database and Oops. After I gave answers he asked me do you like coding or want to do this for money. So I tell him I like coding so its my passion. Then He asked me to leave.
Consider the array {2,1,5,6,3,8} and 'K' = 3, the sorted array will be {8, 6, 5, 3, 2, 1}, and the 3rd largest element will be 5.
1) Kth largest element in an array is the kth element of the array when sorted in non-increasing order.
2) All the elements of the array are pairwise distinct.
Tip 1 : Presence of mind.
Tip 2 : Answer should be appropriate and short (Only Required answers not too much explanations)
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?