>The proposed solution isn’t optimal but it works. Not sure what you think is wrong with it?
Consider the input “ba”
This solution will return “ab”, which is not a strong that can be generated by deleting characters from the input.
Consider the input “ba”
This solution will return “ab”, which is not a strong that can be generated by deleting characters from the input.
No comments yet.