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.
c'mon guys, it is really easy! I will not post my solution, I will only hint, that instead of trying to violate in all dirty ways the given string, try to create a hypothetical beautiful string from the ground up since you already know the first symbol (= the first symbol of given string).
I mean, if the given string is "99100", start with "9" and create a hypothetical beautiful string like this "91011". It is not equal to "99100". Then take 2 digits "99" and try to create another hypothetical beautiful string - "99100" - wow! - this time the given string and our hypothetical beautiful string are equal! I hope you get the idea.
Separate the Numbers
You are viewing a single comment's thread. Return to all comments →
c'mon guys, it is really easy! I will not post my solution, I will only hint, that instead of trying to violate in all dirty ways the given string, try to create a hypothetical beautiful string from the ground up since you already know the first symbol (= the first symbol of given string).
I mean, if the given string is "99100", start with "9" and create a hypothetical beautiful string like this "91011". It is not equal to "99100". Then take 2 digits "99" and try to create another hypothetical beautiful string - "99100" - wow! - this time the given string and our hypothetical beautiful string are equal! I hope you get the idea.