Update Countdown.ipynb
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
"\n",
|
||||
"- *Given any sequence of numbers, place operations and brackets to form a dict of `{value: expression}` for every value that can be made.*\n",
|
||||
"\n",
|
||||
"I'll define `expressions(numbers)` to return an **expression table**: a dict of `{value: expression}` for all expressions (strings) whose numeric value is a `value` that can be made using all the `numbers`, for example:\n",
|
||||
"I'll define `expressions(numbers)` to return an **expression table**: a dict of `{value: expression}` for all expressions (strings) whose numeric value is a `value` that can be made using all the `numbers` in left-to-right order. For example:\n",
|
||||
"\n",
|
||||
" expressions((3, 2)) = {1: '(3-2)', 1.5: '(3/2)', 5: '(3+2)', 6: '(3*2)'}\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user