Problem 2390 · Medium

Removing Stars From a String

Push letters onto a stack and let each star pop the letter nearest to its left.

Open the interactive visualisation