mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update and rename has_path_sum.py to bt_has_path_sum.py
This commit is contained in:
parent
e7284b27e2
commit
5159d766d9
@ -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…
x
Reference in New Issue
Block a user