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.
because, 3 row inc a runs 10 times untill its 0 {a=0} and after 3 row comes fourth dec b which runs also 10 times so it will be -10 - 1 -1 ... 10 times, - 20
hello, i couldn't solve this kata. what algorithm or tecnhnique should i learn in order to solve this kata?
and actually i am having trouble to study data structures and algorithms. would anybody give me some advices about how can i learn and practice data structures and algorithms please?
Great kata, thank you )))
Check if this explanation helps.
I can't understand jnz. If "Note: The jnz instruction moves relative to itself. For example, offset -1 will continue in the previous instruction, and offset 2 will skip the next instruction", why
"mov a -10",
"mov b a",
"inc a",
"dec b",
"jnz a -2"
result {"a", 0}, {"b", -20}? Why b != -11?