Tip 1 : Practice at least 150 Questions
Tip 2 : Do at least 2-3 good projects
Tip 1 : Write only what you are confident about
Tip 2 : Have every significant thing mentioned on the resume
During the day



Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]
Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]
Explanation: The array is sorted in increasing order.
Standard problem, just count and sort
3 OS, 3 DBMS, 4 MATHS
Number Of MCQs - 10
During the day, friendly interviewer


Binary search



If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.

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?