Added template for future problems.
This commit is contained in:
43
ipython/EulerProblem000.ipynb
Normal file
43
ipython/EulerProblem000.ipynb
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"# Problem Name (Euler Problem xxx)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"collapsed": true
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"completion_date": "",
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3",
|
||||||
|
"language": "python3.6",
|
||||||
|
"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.6.5"
|
||||||
|
},
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 2
|
||||||
|
}
|
||||||
@@ -32,7 +32,9 @@ def file_name_to_solution(name):
|
|||||||
|
|
||||||
def get_solution_list(directory="./"):
|
def get_solution_list(directory="./"):
|
||||||
l = [file_name_to_solution(f) for f in os.listdir(directory)
|
l = [file_name_to_solution(f) for f in os.listdir(directory)
|
||||||
if f.endswith(".ipynb") and f.startswith("EulerProblem")]
|
if f.endswith(".ipynb")
|
||||||
|
if f.startswith("EulerProblem")
|
||||||
|
if not f.endswith("000.ipynb")]
|
||||||
l.sort(key=itemgetter(0))
|
l.sort(key=itemgetter(0))
|
||||||
return l
|
return l
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user