Skip to content

Commit

Permalink
add jupyter notebook demo
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomi_h committed Apr 29, 2019
1 parent ef3c758 commit 4e55d0f
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions demo/find-max.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Parsons Puzzle Demo - `find_max`\n",
"\n",
"Construct a function by drag & dropping and reordering lines from the left to the right. The constructed function should return the maximum value of a given list `seq`. You can assume that all the items in the list are positive numbers."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"1000\"\n",
" height=\"400\"\n",
" src=\"http://parsons.problemsolving.io/puzzle/5f25ce927e9449c8af6a5edc295236ab\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x111f0e320>"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Ignore these two lines\n",
"\n",
"from IPython.display import IFrame\n",
"IFrame('http://parsons.problemsolving.io/puzzle/5f25ce927e9449c8af6a5edc295236ab', 1000, 400)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 4e55d0f

Please sign in to comment.