Meta | Phonescreen
Anonymous User
526

Remove consecutive characters similar to 1D candy crush.

  1. abbba --> empty
  2. abb ---> [a]
  3. b ---> [b ]
  4. aabbba -->empty. I wrote stack solution but getting result "a" for 4th input.
Comments (7)