Updated publish to give more information about failure and created html for 28 to 31 in ipython.
This commit is contained in:
22
ipython/EulerProblem031.ipynb
Executable file → Normal file
22
ipython/EulerProblem031.ipynb
Executable file → Normal file
@@ -18,14 +18,12 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"I really have mental issues to this in a non recursive way."
|
||||
"I really have mental issues to this in a non recursive way. So here we go with recursion."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -36,12 +34,18 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"def get_different_ways(remainder, coins):\n",
|
||||
" if not coins:\n",
|
||||
" return 1\n",
|
||||
" coin = coins[0]\n",
|
||||
" combinations = 1\n",
|
||||
" while remainder > 0:\n",
|
||||
" "
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"completion_date": "Fri, 25 Aug 2017, 13:02",
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
@@ -57,8 +61,12 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.3"
|
||||
}
|
||||
"version": "3.5.4"
|
||||
},
|
||||
"tags": [
|
||||
"recursion",
|
||||
"coins"
|
||||
]
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
|
||||
Reference in New Issue
Block a user