• + 25 comments

    For all those who are still trying to figure out why are they failing 1,2 and 3 testcase even when they are getting correct output for most, check for the following string.

    ---->Input: zzzayybbaa

    ---->correct output : zzzbaaabyy

    ---->incorrect output : zzzaaabbyy (what I was getting)

    took me quite a while to figure it out.