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.
It doesn't even enter the for-loop in that case.
me too LOL
Approved, thanks
Scala translation
Backup your code, click Reset, paste it and try again. Or delete the first two lines of the sample tests.
Typescript version not working
I added a note in solution set up.
Cannot allocate the string statically in C,
free(): invalid pointer
.Please indicate so in the description.
Reading the top comment, I'm wondering if this is a joke.
The idea of using a state machine is a good one, but I think it'd be a better design to only give it one job: get the right coordinates.
Accessing the array with the coordinates should be done outside of this state machine.
The idea of using a state machine is a good one, but yours is way too over-engineered.
Ok so I figured it out. I thought that the function expected
outsz
as the output, but it simply expects you to set it, and to allocate your own array and return it.I think this could be made a lot clearer.
There is no bug. You must be missing some edge case.
The C translation seems to be bugged, I am unsure what output is expected.
Accessing the same element [0][0] of
mx
in a loop produces undefined behavior.This comment is hidden because it contains spoiler information about the solution
Loading more items...