Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks for your feedback on my first kata! :)

    • You're right, would you add input validation as requirement to make the kata more interesting or remove it to keep it simple?
    • How would I do that with chai (noob here)? Would you still keep rounding to 2 decimals though?
    • How do I prevent the user from doing that? Is it necessary? Is it possible to cheat the (random) tests with that?
    • It's not very innovative, I give you that. But I think it's a good real world example to practice on
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Something like this should be reportable... or better: not even possible if the author would have used random tests

  • Custom User Avatar

    I found what was missing and completed my solution 🙂
    Hint: was a slight oversight in my while condition which allowed me to exit earlier.

  • Custom User Avatar

    So you're saying the problem is my solution is actually too slow? I'd have 0 clue how to get it faster 🤔, I already optimized it some times.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution