It looks like your reference solution is always printing your "remainder" part in a field of width 2, but also with a leading space (after the "R").
This means if the remainders are all single digits you are going to get double spaces after "R" instead of single spaces. I doubt this was intentional.
Thanks, must have missed that.
Corrected it now.
The
Returnstring
has been corrected, but theVisualize
portion still says8E3
is the result.Its so freaking hard to adjust to this useless spaces after '=' and others...
Thanks for the advice. I hope a loop of 20 ist enough.
Thanks for your tests. I solved this.
Suggest it might be better to put lots of them in a loop instead of just 3 random tests
It looks like your reference solution is always printing your "remainder" part in a field of width 2, but also with a leading space (after the "R").
This means if the remainders are all single digits you are going to get double spaces after "R" instead of single spaces. I doubt this was intentional.
For example. For
273
your solution will give:instead of (single spaces after "R")
Cases like this are not being tested
.
I included random tests
Thanks, my mistake, have korrekted it
No random tests
Huh?
1000
decimal as hex is3E8
not8E3
as in the description/test case