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
This comment is hidden because it contains spoiler information about the solution
My C solution crashes in the actual test whenever I try to set the value of
*path_len
in therun_fsm
function. It works fine in the sample test, and I can assert that it is set correctly. Ispath_len
correctly passed intorun_fsm
by reference in the actual test case?Is there a way to ensure certain code is not used in Python? In JS we can simply open the source file from the filesystem and use a regex to check and subsequently fail a test case if restricted words are used. How can this be achieved in Python with the code passed into the
python
command in interactive mode?C Translation Kumited
I think the level of checking required is too much for a 7 kyu
To answer my own question, it's not math precedence, operators are calculated left to right.
I'm not sure from the description, are the operators calculated as they are reached or in typical math precendence?
I am unclear about the function precedence: if the following input is received
> func 1 + 5
, is that taken to mean> (func 1) + 5
or> func (1 + 5)
Is there a reference for writing Kata in C? My struct from the preload section is not recognized in the solution section. I'm not sure if I'm supposed to be #including it, declaring the struct as extern or are the files just concatenated before testing?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution