You are given a string s, which contains stars *.
In one operation, you can:
Choose a star in s.
Remove the closest non star character to its left, along with the star itself.
Return the string obtained after all stars have been removed.
Constraints:
s.length
s consists of lowercase English letters and stars *.
The operation above can be performed on s.
You are given a string s, which contains stars *.
In one operation, you can:
Choose a star in s.
Remove the closest non star character to its left, along with the star itself.
Return the string obtained after all stars have been removed.
Constraints:
s.length
s consists of lowercase English letters and stars *.
The operation above can be performed on s.