mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
Update and rename has_path_sum.py to bt_has_path_sum.py
This commit is contained in:
parent
e7284b27e2
commit
5159d766d9
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def has_path_sum(root: Optional[TreeNode], target_sum: int) -> bool:
|
||||
def has_path_sum(root: Optional[Node], target_sum: int) -> bool:
|
||||
|
||||
def transverse(node, sum_here=0):
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue