reverse shuffle merge

Solutions on MaxInterview for reverse shuffle merge by the best coders in the world

showing results for - "reverse shuffle merge"
Riccardo
28 Apr 2018
1s = input()
2
3changed = True
4while changed and s != "":
5    changed = False
6    for i in range(len(s) - 1):
7        if s[i] == s[i+1]:
8            changed = True
9            s = s[:(i)] + s[(i+2):]
10            break
11
12if s == "":
13    print('Empty String')
14else:
15    print(s)