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.
No bro, read the question carefully. Test case "abbac" should be YES becoz we can remove 1 char at 1 index only. So, if u remove 'c' then resulting string is "abba" where frequency is: a-2 and b-2.So, it is valid string. Correct me if i m wrong.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Concatenate
You are viewing a single comment's thread. Return to all comments →
No bro, read the question carefully. Test case "abbac" should be YES becoz we can remove 1 char at 1 index only. So, if u remove 'c' then resulting string is "abba" where frequency is: a-2 and b-2.So, it is valid string. Correct me if i m wrong.