You are viewing a single comment's thread. Return to all comments →
pretty cool to Arrays.sort command
public static void main(String[] args) { int a,i; Scanner sc=new Scanner(System.in); a=sc.nextInt(); int arr[]=new int[a]; for(i=0;i<a;i++) arr[i]=sc.nextInt(); Arrays.sort(arr); for(i=0;i<a;i++) System.out.print(arr[i] + " "); }
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 2
You are viewing a single comment's thread. Return to all comments →
pretty cool to Arrays.sort command