You are viewing a single comment's thread. Return to all comments →
Just incase if someone didnt understood,
count+=b[j]*(b[j]-1)/2
What he did is simply nC2, i.e Making combinations of size 2
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
Just incase if someone didnt understood,
What he did is simply nC2, i.e Making combinations of size 2