You are viewing a single comment's thread. Return to all comments →
The second loop should be
for(int j=1; j<=s.Length-i; j++){
It only worked for me after changing the second loop.
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 →
The second loop should be
It only worked for me after changing the second loop.