Infinite Loop in my code.
posted 3 years ago
If you saw my earlier post, we have to navigate a 10x10 array using 1's as a path. When a 1 is selected, we have to change the current position to -1 so that way we don't keep retracing our steps. When I run the program, it keeps saying STEPPED TO [2,3] over and over again. Can someone please identify where my infinite loop is? I can't seem to find it.