You are viewing a single comment's thread. Return to all comments →
why s=y t="yu " or t="yu" k=2 should return "NO" in the 5th test case ?
Because you have to obtain the t string in exactly 2 operations, not just in less than 2
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Append and Delete
You are viewing a single comment's thread. Return to all comments →
why s=y t="yu " or t="yu" k=2 should return "NO" in the 5th test case ?
Because you have to obtain the t string in exactly 2 operations, not just in less than 2