You are viewing a single comment's thread. Return to all comments →
Only three lines: Some practices in Hackerrank seem more difficult than easy and somes seem easier than intermediate.
def superReducedString(s): # Write your code here
for letter in s: s = s.replace(2*letter,"") return s if len(s) != 0 else "Empty String"
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Only three lines: Some practices in Hackerrank seem more difficult than easy and somes seem easier than intermediate.
def superReducedString(s): # Write your code here