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.
This comment is hidden because it contains spoiler information about the solution
LOL! You got haskell reading like js. Awesome.
No worries! good luck / have fun
I misunderstood, sorry and thank you! I will change my mistakes for the future
Hi, you don't need a spoiler tag if the comment doesn't give any information away about how to solve the kata. That way, more people have a chance of seeing your comment and offering a reply.
The error message is informing you that your code returned
21
whereas it should have returned6
for that particular test. Given that it's JavaScript that your're using (in the future please mention the language) I would surmise that you are concatenating2
to1
by using the plus sign, which is to say they are characters, not integers. Otherwise that would=== 3
.Hi! I do not understand something
Test gave me next message:
'expected 21 to equal 6'
If I understood this task right, 2+1 = 3
Could someone help me, please?
This comment is hidden because it contains spoiler information about the solution
I tried to make it purely functional but the large test cases killed me. I tried to add immutable, but codewars apparently doesn't have that library.
I couldn't figure out how to use mori or I would have used that instead, but I also don't know if codewars has that library.
Any FP enthusiasts, please tell a better way to do this if you think of one. Thanks.
Functional and beautiful
if you imagine the grid as being on a table, you can walk around the table and directions will change relative to you while still making sense. you can look at the table from above, or crawl underneath it, or view it through a mirror
for a chess board, up down left right is different depending on whether you're black or white. maybe you're viewing it from the side. it's the same game regardless.
Thank you, kindly.
[0, 0]
is top left corner, and[N - 1, N - 1]
is bottom right corner.Yeah. I have to know what's expected.
Does it matter? Pick one you like, if you must.
This comment is hidden because it contains spoiler information about the solution
Loading more items...