Set 9b Ex 8: don't use out-of-bounds coordinates in example

This commit is contained in:
Joel Kaasinen
2021-06-17 19:47:19 +03:00
parent afa9d14683
commit f51854be4d
+3 -2
View File
@@ -354,8 +354,9 @@ backtrack s = todo
-- .... ....
--
-- More examples:
-- step 8 [(3,9),(4,6),(7,5),(6,2),(8,1)] ==> [(4,7),(7,5),(6,2),(8,1)]
-- step 8 [(4,7),(7,5),(6,2),(8,1)] ==> [(5,1),(4,7),(7,5),(6,2),(8,1)]
-- step 8 [(4,2),(3,5),(2,3),(1,1)] ==> [(5,1),(4,2),(3,5),(2,3),(1,1)]
-- step 8 [(5,1),(4,2),(3,5),(2,3),(1,1)] ==> [(6,1),(5,4),(4,2),(3,5),(2,3),(1,1)]
-- step 8 [(6,1),(5,4),(4,2),(3,5),(2,3),(1,1)] ==> [(5,5),(4,2),(3,5),(2,3),(1,1)]
step :: Size -> Stack -> Stack
step = todo