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 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
Get step-by-step solutions from verified subject matter experts
