Tip 1 : Go through every topic as per the general competition
Tip 2 : Take 2-3 practice test
Tip 3 : Revision is very important
Tip 1 : Add only relative things
Tip 2 : Technical certification will be good
The environment was good there were many scholars giving the same exam. It was organized around 11 am

‘N’ = 4, ‘V’ = [4,3,1,2], ‘Q’ = 3, ‘query’ = [5, 12, 3].
Train visits the station in the following manner:
For the period [0, 3], the train will be at station 1. (0th, 1st, 2nd, and 3rd) for 4 minutes on station 1.
For the period [4, 6], the train will be at station 2.
For the period [7, 7], the train will be at station 3.
For the period [8, 9], the train will be at station 4.
For the period [10, 11], the train will be at station 4.
For the period [12, 12], the train will be at station 3.
First Query: In the 5th minute, the train will be at station number 2. Hence, 2 will be the answer.
Second query: In the 12th minute, the train will be at station number 3. Hence, 3 will be the answer.
Third Query: In the 3rd minute, the train will be at station number 1. Hence, 1 will be the answer.
The final output will be: [2, 3, 1]
Heap approach



You need to change in the given array/list itself. Hence, no need to return or print anything.
Simple traversal and sorting
General introduction, and basic HR Question
Stay confident and reply with a smile

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?