3.13148/s VOLTE
1:26 pm
* 32%
GUVI
FINISH TEST
Question 01
Saranya has a string of lowercase characters in range ascul'a' 'Z] She wants to reduce the string to its shortest length by doing a series of operations. In
each operation she selects a pair of adjacent lowercase letters that match, and she deletes them. For instance, the string aab could be shortened to b in
one operation
Saranya's task is to delete as many characters as possible using this method and print the resulting string. If the final string is empty print"-1"
Sample input baab
Sample Output-1
sample input
sample output
Answers
Answered by
0
Answer:
he is the first person to be a member e
Explanation:
please answer this question and ask about u for a few days and I am 6sorry to
Similar questions