C ++ implementation of counting number of possible hexagonal walks
#include <iostream> NEW_LINE using namespace std ; int depth = 16 ; int ways [ 16 ] [ 16 ] [ 16 ] ; int stepNum ; void preprocess ( int list [ ] ) {