You are viewing a single comment's thread. Return to all comments →
does this pass the test cases? you are comparing s[j] to prev, but the same character may not be placed adjacent eg - abcdbcdaasc
Seems like cookies are disabled on this browser, please enable them to open this website
Weighted Uniform Strings
You are viewing a single comment's thread. Return to all comments →
does this pass the test cases? you are comparing s[j] to prev, but the same character may not be placed adjacent eg - abcdbcdaasc