Fix #13, PEP8-ify notebooks.

This commit is contained in:
Donne Martin
2015-07-11 15:39:59 -04:00
parent 4566d1a803
commit 3712839cc9
26 changed files with 139 additions and 92 deletions

View File

@@ -34,7 +34,6 @@
"source": [
"## Constraints\n",
"\n",
"* Are the stacks and array a fixed size?\n",
" * Yes"
]
@@ -77,7 +76,7 @@
"outputs": [],
"source": [
"class Stacks(object):\n",
" \n",
"\n",
" def __init__(self, num_stacks, stack_size):\n",
" # TODO: Implement me\n",
" pass\n",
@@ -120,7 +119,7 @@
"\n",
"\n",
"class TestStacks(object):\n",
" \n",
"\n",
" @raises(Exception)\n",
" def test_pop_on_empty(self, num_stacks, stack_size):\n",
" print('Test: Pop on empty stack')\n",
@@ -151,14 +150,16 @@
"\n",
" print('Success: test_stacks\\n')\n",
"\n",
"\n",
"def main():\n",
" num_stacks = 3\n",
" stack_size = 100 \n",
" stack_size = 100\n",
" test = TestStacks()\n",
" test.test_pop_on_empty(num_stacks, stack_size)\n",
" test.test_push_on_full(num_stacks, stack_size)\n",
" test.test_stacks(num_stacks, stack_size)\n",
" \n",
"\n",
"\n",
"if __name__ == '__main__':\n",
" main()"
]