neither of the ladies_ ear ring
Answers
Answered by
3
Explanation:
which there is no student with higher roll number on to his
Example
roll_numbers = [3,6,2,7,5] //roll numbers of students randomly picked initially amongst all students
Use a 1-indexed array. On day 1, roll numbers 6 and 7 will be picked to give viva leaving roll_numbers' =
(3,2,5]. On day 2 , roll number 5 will be picked for viva leaving roll_numbers" = (3,2). There is no student
with a higher roll number than the one to its left, so that batch will be over with the viva and will be ready
to enjoy the vacations,
Input Format
The first line contains an integer n, the size of the array roll_number,
The next lines contains n line-separated integers roll_number[i].
Constraints
Similar questions
Music,
24 days ago
Biology,
24 days ago
Social Sciences,
24 days ago
Business Studies,
1 month ago
Social Sciences,
1 month ago
Hindi,
8 months ago
Physics,
8 months ago
Physics,
8 months ago