Ad
  • Custom User Avatar

    I'm still confused. Lol
    Probably it's just me being dumb here but could you just rewrite the specs as you would do in the kata description? Not the solution, just the specs.

  • Custom User Avatar

    Hey sorry about the slow reply, I had some busy days.
    I appreciate the suggestion.. but honestly I have been looking at it for 5 minutes now and haven't yet figured out how you print the "^" out. Lol

  • Custom User Avatar

    Great, thanks a lot for the support. Yeah, actually maybe some help with the random test cases would be also appreciated.

  • Custom User Avatar

    Hi, sorry for the duplicate. I could not find those kata before posting mine, maybe I didn't search well enough.
    I'll see if I can come up with something to make it more unique. In the meantime I'll change the method name as suggested. Thank you.

    Edit: by changing the name I noticed that obviously many solutions posted so far do not pass the tests anymore. Is there a way to keep the updated name and the solutions posted before such update valid at the same time?

  • Custom User Avatar

    Ehehe yeah I didn't really mean ugly after all (hence the question mark), I was rather thinking of readability. My idea was to put there a very simple solution using only basic loops. I have many other solutions to this problem, let's say that I'm fond of it for a series of resons.
    Anyway it's to hear other people's (most likely way more expert than me) opinions. Thanks. :)

  • Custom User Avatar

    Woooops! Thank you!