From 5be14fbbb9561d17099cd2972c2ca5437b9343f6 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 20 Jun 2025 19:01:02 +0200 Subject: add comment for exercise 6 --- lec01/hw.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lec01/hw.hs b/lec01/hw.hs index 19dd24f..3f63bf6 100644 --- a/lec01/hw.hs +++ b/lec01/hw.hs @@ -51,3 +51,7 @@ hanoi 0 _ _ _ = [] hanoi 1 a b c = [(a,c)] hanoi 2 a b c = [(a,b), (a,c), (b,c)] hanoi n a b c = hanoi (n-1) a c b ++ [(a,c)] ++ hanoi (n-1) b a c + +-- exercise 6 + +-- (optional, skipped) \ No newline at end of file -- cgit v1.2.3