Fix Day 19, Puzzle 1 solution

This commit is contained in:
2024-12-21 12:17:12 +01:00
parent 176b562eb4
commit 5390addcff

View File

@@ -13,7 +13,7 @@ getDesignCombinations design towels cur = do
let design' = drop (length towel) design
if null design'
then return $ drop 1 cur
then return $ drop 1 cur ++ "," ++ towel
else getDesignCombinations design' towels (cur ++ "," ++ towel)
isDesignPossible :: String -> [String] -> Bool