How the expected answer of "abababababababababaaa" is 2 instead of 3?

  • 0

    For "abababababababababaaa" we atleast need two replace(one digit and one capital letter) and one deletion(as the size is 21). So, total operation is 3. How its 2?

  • 0

    You are right it should be 3, and it has been fixed. Sorry about that!

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.