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.
What a fortunate thing, that we're in a coding site, not an interview.
If I didn't want to use libraries then I would've coded in C lol.
Sorry to say, that's not accepted in a real interview. Your interviewer has given you the question to check whether you can whether you can solve it without using libraries. They expect you to understand how things work under the hood.
Good job! I don't know why someone should reinvent the wheel, when there is a tested library, that does exactly that.
Thanks, I see what I did wrong.
.
Not everything you've said is true, check your assumptions.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
.
Gotcha! I did not know that.
Thanks! Glad you liked it.
FYI - the Kata kyu level is assigned (not by me) when the Kata is first approved. Once set it cannot be altered.
This has been a great series, thanks for making it! IMHO they are a bit hard for the Kata level and should each be at least 1 level harder.
It's a combination if statement and goto. When the first argument is equal to zero, "jnz" does nothing. Some examples:
"jnz 1 0"
This code is an infinite loop: the "if" is always 1, which is not zero. The jump is to itself!
"dec x"
"jnz 1 -1"
Also an infinite loop, with the side effect of subtracting 1 from x every time through the loop
"mov x 3"
"dec x"
"jnz x -1"
This loop triggers twice: once with x=2 and once with x=1. When x=0, "jnz" does nothing, and the program ends.
Hope those examples help.
It's already in the kata description.
Loading more items...