Separate the Numbers

  • + 6 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.