@steffan153 Nothing is visible. There is a red arrow to left of "KataTest". It's expand/collapse feature. But expanding it doesn't show anything.
@mahesh2492 Were you able to proceed so far ?
@mahesh2492 You can add a print statement for any random failing test by if condition to print all input parameters as well as your return value.
print your return value to find out which test is failing and then add checks accordingly.
733049910872815764 in chunks of 5 digits becomes 73304 99108 72815 (the last chunk is discarded).
If a chunk represents an integer such as the sum of the cubes of its digits is divisible by 2, reverse that chunk; otherwise rotate it to the left by one position.
Because they're not, they are all rotated left by one position.
use a print statement... you will know a tests input value once it's been used, so you can at least study the results to it, but of course because random, you will not know what or when on the next run, study hard, good luck
OP solved it, closing
OP solved it, closing
Same error
@steffan153 Nothing is visible. There is a
red arrow
to left of "KataTest". It's expand/collapse feature. But expanding it doesn't show anything.@mahesh2492 Were you able to proceed so far ?
@mahesh2492 You can add a print statement for any random failing test by
if
condition to print all input parameters as well as your return value.print your return value to find out which test is failing and then add checks accordingly.
Answered.
just "RTFM"? x)
This comment is hidden because it contains spoiler information about the solution
733049910872815764
in chunks of 5 digits becomes73304 99108 72815
(the last chunk is discarded).Because they're not, they are all rotated left by one position.
73304 99108 72815 -> 33047 91089 28157
Scroll to the bottom. It will tell you what went wrong.
use a print statement... you will know a tests input value once it's been used, so you can at least study the results to it, but of course
because random
, you will not know what or when on the next run, study hard, good luck