Round 1
Questions:
- An array of ratings of students. Chocolates need to be distributed among the students such that the student who has ratings greater than their neighbour must have chocolates greater than neighbours. Need to return the minimum numbers of chocolates needed.
- Find the pair of numbers from an array of positive numbers whose sum is equal to their target. Further, what changes need to be made when the array has even negative numbers as well.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.