Frog Jump Grid

A frog wants to jump from position (0,0) to position (7,4). The frog can jump either one step to the right or one step upwards at a time. However, the frog doesn't want to jump in the same direction t...

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: