Ad
  • Custom User Avatar

    Don't forget: Each declared variable needs space in memory (stack or heap). In this kata, you might use three different vars but in real life projects with millions of code and thousands of vars, that solution might be best practise (depends on your team and the concrete project / requirements).

  • Default User Avatar

    Apparently the computer understands it better if the code is all on one line.

  • Default User Avatar

    Short and clever, but (for me) it would've been easier to understand, if you got 3 different variables, for hours, minutes and seconds.