Computer Science, asked by mkarthickraja03, 9 months ago

1911 907 B/s VOLTE
1:33 pm
*31%
guvi.in/codingchallenge
2
GUVI
share what you know
Question 01
Saranya has a string of lowercase characters in range ascii['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
aa​

Answers

Answered by testqagd
0

Answer:

y3u37 6system and he is the only person in the brain 333inches who has been born and he is the only one that is a person and is a person and a new year and

Similar questions