- #1
Saitama
- 4,243
- 93
Hello all!
I was trying to solve this problem which is supposed to be easy: Traversing Grid | CodeChef
I couldn't solve it so I looked at some solutions, they seem to be using the concept of GCD. I am unable to understand why this works, please help. Thanks!
I was trying to solve this problem which is supposed to be easy: Traversing Grid | CodeChef
I couldn't solve it so I looked at some solutions, they seem to be using the concept of GCD. I am unable to understand why this works, please help. Thanks!