Skip to content

Commit 304e6ec

Browse files
committed
docs: add TODO in cookiecutter template
1 parent 4e18df4 commit 304e6ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.templates/leetcode/{{cookiecutter.problem_name}}/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 %}

.templates/leetcode/{{cookiecutter.problem_name}}/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class 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

0 commit comments

Comments
 (0)