You are viewing a single comment's thread. Return to all comments →
I am getting runtime error on testcase 6 and 7.What am I doing wrong ?
Arrays.sort(ar); int count=1; for(int i=n-1;i>=0;i--) { if(ar[i]==ar[i-1]) { count++; } else break; }
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
I am getting runtime error on testcase 6 and 7.What am I doing wrong ?