Question: Given a list of numbers (integers), find second maximum and second minimum in this list. Input Format: The first line contains numbers separated by

Given a list of numbers (integers), find second maximum and second minimum 

Given a list of numbers (integers), find second maximum and second minimum in this list. Input Format: The first line contains numbers separated by a space. Output Format: Print second maximum and second minimum separated by a space Example: Input: 12345 Output: 42

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!