mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 14:56:27 -04:00
Update bt_has_path_sum.py
This commit is contained in:
parent
ff3987dffc
commit
b91db08a40
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue