Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The Kata description says "You will always be given an array with five six-sided dice values", so I made the rash assumption that a six-side dice only has numbers 1,2,3,4,5,6.
If someone has a dice with a "7" on it then they deserve whatever happens next.
I vote 'genius' ;-)
where are ported the test cases?
:-)
Kata rules say
if a and b are the same then just return distance between a and cThanks! Approved.
.
Even if what you say makes sense...
~
The Kata description says
... which always includes exactly two end-points indicated by X. Therefore you won't ever be asked to validate a grid with 4 'X's like in your example.Isn't that first one just my "Test 5"?
Looks false to me. Also, looks false to the other 162 people who passed the Kata in Java.
Please explain why you are right, and 162+1 people are wrong.
Only 8 years to fix... better late than never ;-)
Saying it "tries to be smart" is just a throwaway sentence to say there is some logic to how my lift behaves. I mean, it doesn't blindly just go from very top, to very bottom, to very top etc. e.g. There are rules to make it more efficient (aka "smarter") than that.
@andrewdavis23. Yes. Correct interpretation.
Approved. Thanks!
LGTM. Approved. Thanks!
Hi. Thanks for the translation.
I added a printf to see what your random combinations looked like.
I don't think they should be the same direction/number repeated 3x. Each of the 3x should be different IMO.
Loading more items...