From b91db08a40d0d4c1a71c8fb9a79c5b7badf9804f Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:37:44 -0700 Subject: [PATCH] Update bt_has_path_sum.py --- trees/bt_has_path_sum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trees/bt_has_path_sum.py b/trees/bt_has_path_sum.py index 9590c17..b58d8af 100644 --- a/trees/bt_has_path_sum.py +++ b/trees/bt_has_path_sum.py @@ -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):