yeah, let's see how the current specs fare.
Yes, it can be done, but the idea was to ignore zero. In addition, there is a limit on the number of zeros.
How about when zero, add 0 and the number of consecutive zeroes? For instance 1003 -> 102333. This way you could provide both encode/decode methods. You could only allow max 9 consecutive zeroes in this system though.
metal monkey :D
I think we should add the years before 1924 to the tests.
This gets me every time I do these kinds of katas.
Done!
It would be good to mention that in the instruction.
Approved. Thanks.
whY "Y" is not a vowel ?
Loading collection data...
yeah, let's see how the current specs fare.
Yes, it can be done, but the idea was to ignore zero. In addition, there is a limit on the number of zeros.
How about when zero, add 0 and the number of consecutive zeroes? For instance 1003 -> 102333. This way you could provide both encode/decode methods. You could only allow max 9 consecutive zeroes in this system though.
metal monkey :D
I think we should add the years before 1924 to the tests.
This gets me every time I do these kinds of katas.
Done!
It would be good to mention that in the instruction.
Approved. Thanks.
whY "Y" is not a vowel ?