Closed BertLisser closed 7 years ago
Exercise 4 changed to:
isPermutation :: Eq a => [a] -> [a] -> Bool
isPermutation xs ys = (length xs == length ys) && null (xs \\ ys)
(differs slightly from proposed solution)
Added additional properties for Exercise 5
Exercise 4 Very nice original and short solution.
I make it little shorter:
Perfect
Exercise 5 You have chosen the wrong test cases. Counter examples are permutations but not derangements.
Good