For a better experience on RandomWits, enable JavaScript in your browser.
RandomWits
life is too short for a diary
Tags
Books
Quotes
Travel
Resources
Tools
Contact
About
On This Page
Posts Tagged: stack
Remove-all-adjacent-duplicates-in-string-ii Solution
You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together...
Continue reading →
leetcode
stack
python
java
scala
javascript