Recursive CPP program to find minimum jumps to reach last building from first .
#include <bits/stdc++.h> NEW_LINE using namespace std ; # define R  4 NEW_LINE # define C  3 NEW_LINE bool isSafe ( int x , int y ) { return ( x < R && y < C ) ; }