mirror of
https://github.com/iritmaximus/haskell.git
synced 2026-10-12 19:13:39 +03:00
Set 9b Ex 8: don't use out-of-bounds coordinates in example
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user