Problem 1544 · Easy

Make The String Great

Remove adjacent letter pairs that match in value but differ in case, using a stack as the string is processed. The visual shows the stack growing and shrinking as pairs cancel.

Open the interactive visualisation