Skip to content

Instantly share code, notes, and snippets.

@shahidul-brur
Created January 13, 2019 09:20
int mini = n;
for(int i=1;i<=c;i++){
int k = cnt[i];
int del = n - freq[i][k+1];
mini = min(mini, del);
}
if(mini==n) printf("-1\n");
else printf("%d\n", mini);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment