File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
.templates/leetcode/{{cookiecutter.problem_name}} Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ class {{cookiecutter.solution_class_name}}:
44 {% - for _ , methods in cookiecutter ._solution_methods | dictsort % }
55 {% - for method in methods % }
66 # Time: O(?)
7- # Space: O(?)
7+ # Space: O(?){# TODO: add decorator // optional self. #}
88 def {{method .name }}(self , {{method .parameters }}) - > {{method .return_type }}:
9- # TODO: Implement {{method.name}}
9+ # TODO: Implement {{method.name}}{# TODO: add body #}
1010 return {{method .dummy_return }}
1111
1212 {% - endfor % }
Original file line number Diff line number Diff line change 33
44class Test {{cookiecutter .test_class_name }}:
55 {% - for _ , helper_methods in cookiecutter ._test_helper_methods | dictsort % }
6- {% - for method in helper_methods % }
6+ {% - for method in helper_methods % }{ # TODO: add decorator // optional self. #}
77 def {{method .name }}(self {% if method .parameters % }, {{method .parameters }}{% endif % }):
88 {{method .body | indent (8 , first = False )}}
99
You can’t perform that action at this time.
0 commit comments