Revature Question Solve | Smallest and the 3rd smallest element | Codewindow.in
Write a program to find the difference between the smallest and the 3rd smallest element in thearray. The resultant output should be a positive integer Input FormatFirst line contains an integer, denotes the size of the arraySecond line contains the elements of an array. Sample Input52 3 4 5 6Sample Output2 ExplanationThe smallest element in […]
Revature Question Solve | Smallest and the 3rd smallest element | Codewindow.in Read More »