Skip to content
Snippets Groups Projects
Commit bc4063dd authored by Michael Mutote's avatar Michael Mutote
Browse files

22202956

ex 4.9 q 4 had to be made into backtracking
parent fd8d08c1
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ def np(x, y):
for pos in new_pos:
if (pos not in current) and ((0 <= pos[0] <= x) and (0 <= pos[1] <= y)):
trace.append(current + [pos])
return final
return len(final)
def np2(x, y, trace=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment