We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
you have to:
1) compare string only of same length
2) in case string are equal you have to handle the case
Ex: a=Z b=ZZT sol ZZTZ
your code (as my first version did) will produce ZZZT
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Morgan and a String
You are viewing a single comment's thread. Return to all comments →
you have to: 1) compare string only of same length 2) in case string are equal you have to handle the case Ex: a=Z b=ZZT sol ZZTZ your code (as my first version did) will produce ZZZT