http://tpcg.io/PRg6COoy
see this code why it is showing no element found
No element found
you should use sc.next() instead of sc.nextLine() to read input. and you should sort in descending order.
Thanks.
you should use sc.next() instead of sc.nextLine() to read input. and you should sort in descending order.
Thanks.