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.
Or this one, is this kata even possible to complete? :/
What are you testing here? I start top-left, either I go
RRR
, or I can walk in an eternal loop around the edges.I agree, pure waste of time
No matter how i try guys i will never can fix any of these questio nim trying guys i cant well .... there is othing wec an do ? ? can anyone understand me?
The starting orientation of the robot is not specified (only the starting position). If the top-left tile is
or
K
the move is undefined.Actual tests give
You didn't clear the named param variable (TIP: USE 'delete this[...]')!
when example tests pass, so clearly the example tests and actual tests have two different testing mechanisms, and hence the sample tests do not reflect what is actually being tested.This kata is simply a bad idea, period.
(The reason is left as an exercise to the reader, but any sane reader should've figured this out)
Very good logic! liked this solution!
So, it does work. And please, remember using spoiler flag next time when posting code.
And, of course, I know 0 === -0.
May be it's reason to tests work.
But a visual area has problem and users see -0.
This comment is hidden because it contains spoiler information about the solution
There is a test with -1 and this code works, why do you say it doesn't? Have you tried it?
Sorry, but this code doesn't work if n === -2, for example.
We have -0, but we can't.
We need to write about it. If we have -0 return 0.
lol. I feel dumb.
Simplicity, the ultimate sophistication.
Loading more items...