M
MIke Beam
I am trying to solve a problem in Java and need some help. I basically
need to figure out how many possible 7 digit numbers can be mapped out
of a number keypad, while moving like any chess peice.
123
456
789
#0*
For example, starting in the upper-right corner (the "3" key) using a
rook (which moves any number of spaces horizontally or vertically),
one valid number is: 314-5289.
I figured out how to get every possible move, I now need a good way to
represent the data, so I can traverse it to find my solutions.
any ideas?
thanx
mike
need to figure out how many possible 7 digit numbers can be mapped out
of a number keypad, while moving like any chess peice.
123
456
789
#0*
For example, starting in the upper-right corner (the "3" key) using a
rook (which moves any number of spaces horizontally or vertically),
one valid number is: 314-5289.
I figured out how to get every possible move, I now need a good way to
represent the data, so I can traverse it to find my solutions.
any ideas?
thanx
mike