mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 12:16:14 -04:00
Update bt_has_path_sum.py
This commit is contained in:
parent
ff3987dffc
commit
b91db08a40
@ -2,7 +2,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def has_path_sum(root: Optional[Node], target_sum: int) -> bool:
|
||||
|
||||
def has_path_sum(root, target_sum) -> bool:
|
||||
|
||||
def transverse(node, sum_here=0):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user