Skip to content

Commit f2e8113

Browse files
committed
fix: fix reorder list template
1 parent 4259556 commit f2e8113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode_py/cli/resources/leetcode/json/problems/reorder_list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpers_content": "",
2424
"helpers_run_name": "reorder_list",
2525
"helpers_run_signature": "(solution_class: type, head_list: list[int])",
26-
"helpers_run_body": " head = ListNode[int].from_list(head_list)\n implementation = solution_class()\n implementation.reorder_list(head)\n return head.to_list()",
26+
"helpers_run_body": " head = ListNode[int].from_list(head_list)\n implementation = solution_class()\n implementation.reorder_list(head)\n return head.to_list() if head else []",
2727
"helpers_assert_name": "reorder_list",
2828
"helpers_assert_signature": "(result: list[int], expected: list[int]) -> bool",
2929
"helpers_assert_body": " assert result == expected\n return True",

0 commit comments

Comments
 (0)