View Single Post
Old Dec 16th, 2006, 6:48 PM   #5
kyndig
Newbie
 
Join Date: Jan 2006
Posts: 7
Rep Power: 0 kyndig is on a distinguished road
Quote:
Originally Posted by afroboy0731 View Post
but if i did it like that then wouldnt i get 10 instead of the correct answer, 8
I see what you are saying, you could possibly, add some code to check another step ahead, and see if that 'branch' is a dead end, if it is then dont add that as a step.
kyndig is offline   Reply With Quote