English, asked by solomonbepom, 1 month ago

neither of the ladies_ ear ring

Answers

Answered by dkyouth88
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