• Custom User Avatar

    Yes. Exceptions shouldn't be used for flow control. In a real setting, you'd probably parse it as a long (and possibly catch that exception) then check the size for the actual type.

    That being said, it is really easy to see what is happening, which is good.

    And it looks pretty. :-)

  • Custom User Avatar

    Тоже ни разу не слышал про такое. Но задачу решил)))

  • Custom User Avatar

    I would, no offense. The description of the problem leaves much to be desired anyways. What's next should we call the fibonacci series as "a collection of numbers where a number is the sum of the previous two" so that its harder for people to research if they don't know about its existence. I can hardly understand how the function should be written without looking at the tests and rereading the description 3 times. There are ways to write a description which makes things interesting without holding the person's hand.

    Edit: To clarify I really don't mind googling as much as some here in the comments, that's how I have learned anything especially regarding programming or pen testing, but give better hints. Otherwise it was quite a fun kata.

  • Custom User Avatar

    Examples describe better than words before them.

  • Custom User Avatar

    I wouldn't call myself lazy. I purposefully left out the formula for someone to figure that out themselves... The problem came in when a moderator down-rated it to 8 kyu without changing anything in the description.