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).
Apparently the computer understands it better if the code is all on one line.
%60 instead of /3600 for seconds will work the same right?
This comment is hidden because it contains spoiler information about the solution
Short and clever, but (for me) it would've been easier to understand, if you got 3 different variables, for hours, minutes and seconds.
Short, concise and elegant.
Could make it even more efficient using string interpolation. Still an elegant solution.
wow, I like this algorithm !
Impressed with minutes calculating algo. Great!!
Wow that's good.
I'm having the same issue, is anybody taking care of this?