5 ms·
>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
by mmierz 7y ago
>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.
- deleted 7y ago[deleted]