Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 687 Bytes

45. Ria is always fascinated by the number 2. She always wants to know who came second in a race, the second person to set foot on the moon and so on. She is given a list of numbers and asked to find the maximum. As always, she reports the second highest number as the maximum because according to her, 2 is higher than 1. Find out which was the number that Ria would have reported, given a list of N numbers.

File metadata and controls

22 lines (14 loc) · 687 Bytes