← ALL NOTES
Hash Table

3170. Lexicographically Minimum String After Removing Stars

Given a string s with '*' characters. While stars remain, each one (left to right) is removed along with one smallest character to its left (ties broken by the one closest to the star). Return the…

Loading…