You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Akash is found of collecting unique coins. Every coin has a denomination i.e Z. One Afternoon, he has K coins. He wnat to arrange K coins in non-increaasing order as per denomination. Write a programming solution to help akash. - Note: Use Insertion Sort
Input Format
1st line contain K Coins
2nd line contain space separated denomination from K coins
Constraints
K>0 & K<50
Z>0 & Z<100
Output Format
space separated sorted denomination from K coins
Sample Input 0
5
10 4 3 7 8
Sample Output 0
10 8 7 4 3
*/
// Kirtan Jain
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String args[] ) throws Exception {