We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bigger is Greater
You are viewing a single comment's thread. Return to all 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.