Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 394 Bytes

Super Reduced String.md

File metadata and controls

19 lines (13 loc) · 394 Bytes

Question

You are given a string of lowercase letters.

You are allowed to delete adjacent pairs of lowercase letters, as many times as you want

Delete as many characters as possible and print the resulting string.

Example:

aaabccddd
abccddd
abccd
abd    <-- final answer

HackerRank Full Question

Super Reduced String