You are viewing a single comment's thread. Return to all comments →
The first line in input is length of string s and not the number of test cases. Hence the outer for loop shouldn't be there.
Seems like cookies are disabled on this browser, please enable them to open this website
Two Characters
You are viewing a single comment's thread. Return to all comments →
The first line in input is length of string s and not the number of test cases. Hence the outer for loop shouldn't be there.