Ad
  • Default User Avatar

    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

  • Default User Avatar

    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?

  • Default User Avatar

    Great kata, thank you )))

  • Custom User Avatar
  • Default User Avatar

    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?