I used a set and count variable to solve the problem, and my solution got accepted when it should've failed for a test case. s="aaabaaa" test case should have returned True because it's a ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results