https://leetcode.com/problems/maximum-score-from-removing-substrings/description/
Max score removing from
Max score removing from
s
, x
for ab
, y
for ba
#medium #greedy #stack👍2
https://leetcode.com/problems/robot-collisions/description/
1-D dimensional robots fight #hard #stack
1-D dimensional robots fight #hard #stack
👍2
https://leetcode.com/problems/number-of-atoms/description/
Simplify chemical formula parenthesis #hard #stack
Simplify chemical formula parenthesis #hard #stack
👍2
https://leetcode.com/problems/minimum-string-length-after-removing-substrings/description/
Remove 'AB' and 'CD' from the string #easy #stack
Remove 'AB' and 'CD' from the string #easy #stack
👍3
https://leetcode.com/problems/minimum-number-of-swaps-to-make-the-string-balanced/description/
Min swaps to balance brackets #medium #two_pointers #stack
Min swaps to balance brackets #medium #two_pointers #stack
👍3
https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/description/
Minimum inserts to balance brackets #medium #stack
Minimum inserts to balance brackets #medium #stack
👍3
https://leetcode.com/problems/parsing-a-boolean-expression/description/
Parse boolean expression #hard #stack #recursion
Parse boolean expression #hard #stack #recursion
👍4
https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/description/
Recover binary tree from depth-dashes string #hard #stack
Recover binary tree from depth-dashes string #hard #stack
👍2🔥1
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/description/
Tree from preorder & postorder #medium #stack
Tree from preorder & postorder #medium #stack
🔥2👍1