ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1654. Cipher Message

HINT
Posted by Wonsei 15 Sep 2020 19:52
Use stacks.
Push one letter by letter.
If stack.top() == current letter, pop the stack.
else push the letter in the stack.
Re: HINT
Posted by Lifeisbeautiful 6 Jan 2021 10:19
Thank you.
Re: HINT
Posted by Eusebiu_distrugatorul 6 Feb 2021 20:27
Thank you, broo
Re: HINT
Posted by Aadarsh Tyagi 29 Sep 2024 00:19
You could also use deque.