• + 0 comments

    Java

    Collections.sort(arr); int count=0; for(int i=0;ik){ break; } } } return count;