By how much is the number of
Students liking Maths is more than
that of the number of students
liking Science?
(2) 12
3) 24
4 8
Answers
Answer:
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
Answer:
By how much is the number of
Students liking Maths is more than
that of the number of students
liking Science?
(2) 12
3) 24
4 8