algospot prefix not completed

depth first search