diff --git "a/problems/0112.350円267円257円345円276円204円346円200円273円345円222円214円.md" "b/problems/0112.350円267円257円345円276円204円346円200円273円345円222円214円.md" index d4cb51908d..c6c22e7d2c 100644 --- "a/problems/0112.350円267円257円345円276円204円346円200円273円345円222円214円.md" +++ "b/problems/0112.350円267円257円345円276円204円346円200円273円345円222円214円.md" @@ -499,7 +499,7 @@ class solution: if not cur_node.left and not cur_node.right: if remain == 0: result.append(path[:]) - return + return if cur_node.left: path.append(cur_node.left.val) @@ -508,7 +508,7 @@ class solution: if cur_node.right: path.append(cur_node.right.val) - traversal(cur_node.right, remain-cur_node.left.val) + traversal(cur_node.right, remain-cur_node.right.val) path.pop() result, path = [], []

AltStyle によって変換されたページ (->オリジナル) /