This comment is hidden because it contains spoiler information about the solution
"In the case of duplicate alphabet letters, you have to arrange them according to the number that appeared first in the input string" - confused me.
Blocks like "22y6" not a numbers, so that sounds like subsorting by first number occurance in block is needed.
Can you explain what the order of the string should be?
'22y6 a96 8b y8 d9 29y 6d7 y44 6z b4 393d x500'
my order is:
96, 8, 4, 9, 67, 393, 500, 226, 8, 29, 44, 6
I got an error:
Expected: 4121755, instead got: -15950
Is there a problem with my calculations?
In the kata hour hand moves discretely. It would be interesting to consider its motion within hour.