News
- Use stack instead of stringBuffer: keep append/remove last added item - However, stringBuffer appears to be faster than stack. Given a string which contains only lowercase letters, remove duplicate ...
You are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them. We repeatedly make duplicate removals on s ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results