hey

i just took a quiz where i had no idea how to write this code for this type of problem

so i had this cross

VB Code:
  1. --------
  2.                   |    |   |
  3.              -------------------
  4.              |   |    |    |    |
  5.              ---------------------
  6.                  |    |    |
  7.                  ---------

sry for the wierd shape..but is a cross.n we had to put numbers in it so that no two number are adjacent to it horiztonally, vertically, or diagonally

ex..
Code:
       3 5
     7 1 8 2
       4 6
any clue on how to write this code using backtracking..thanks