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.
Well, I am ashamed how beginner I am, it's very clear if I look at your solution, compared to mine.
Anyhow, your solution is pretty clever.
This comment is hidden because it contains spoiler information about the solution
The items in the array are directions, not positions.
thankss!!
"directions" should be "walk"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Xeferis says it right, it's even in the description of the kata. It's 3 years, not four. It must be a typo.
I have the same problem, only this basic test fails.
So, Mednoob? Would you care to notify the kata writer to update it's tests?
Thanks
I also cannot understand the instructions.
This is more like of a 5kyu. Nevertheless, it requires more logic rather than math skills. Anyway, I still don;t understand the solutions, yet. Didn't solve it on my own. Maybe later.
bruteforce is possible too
What helped me, is not to view the problem as an image of boxes placed in staggered manner, but rather sequnce of numbers. Then it is easier to see the solution (Dont overly complicate the solution, because it is much easier than what it seems)
I can't see how should I use .toPrecicion in Javascript, it works for the whole part of the float numbers is one digit, it more, then I have to increase the precision. It doens't make sense this way. Help please!
I have still have to report bugs with th random test cases.
In Javascript, no matter how do I use it, or parseFloat or convert the .toPrecision(5) to Number, which would return the number and the floating part of with 4 digits, the test cases are not synced with the actual solution. In VSCode works just fine.,
What I am saying is that the test case solution are requiring more digits, which makes the whole problem a bit odd and unsolvable.
Weird thing happened, I used the code I submitted as accepted solution in VSCode and it repeated the output the times the number I entered as input, so there should be a break; after each case. It's weird that Codewars doesn't work parallel with major IDE's
Loading more items...