From f45137d923e2d6114e7d367e31b8275c78118b77 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 4 Jan 2016 16:51:48 -0800 Subject: [PATCH] typo --- day17.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day17.rkt b/day17.rkt index 6cedbb1..baa3b61 100644 --- a/day17.rkt +++ b/day17.rkt @@ -16,7 +16,7 @@ @section{How many combinations of containers fit exactly 150 liters?} -This is a lot like the second part of @secref{Day_15}, where we had to find cookie recipes that totaled 500 calories. This time, rather than recipes, we need to generate combinations of the containers that add up to exactly 150 liters (though we don't have to use all the containers, and multiple containers of the same size are deemed to be create unique arrangements). +This is a lot like the second part of @secref{Day_15}, where we had to find cookie recipes that totaled 500 calories. This time, rather than recipes, we need to generate combinations of the containers that add up to exactly 150 liters (though we don't have to use all the containers, and multiple containers of the same size are deemed to create unique arrangements). We do this by creating the @italic{power set} of the containers — that is, a list of all possible subsets — and counting how many meet our criterion. As with the recipe problem, our @racket[powerset] function is a simple recursive operation.