Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day22 q2: Sum of Left Leaves #464

Open
sumiranverma opened this issue Jan 21, 2024 · 8 comments
Open

Day22 q2: Sum of Left Leaves #464

sumiranverma opened this issue Jan 21, 2024 · 8 comments
Assignees

Comments

@sumiranverma
Copy link
Contributor

Given the root of a binary tree, return the sum of all left leaves.

A leaf is a node with no children.
A left leaf is a leaf that is the left child of another node.

Example 1

image

Input: root = [3,9,20,null,null,15,7]
Output: 24
Explanation: There are two left leaves in the binary tree, with values 9 and 15 respectively.

Example 2

Input: root = [1]
Output: 0

Constraints:

  • The number of nodes in the tree is in the range [1, 1000].
  • 1000 <= Node.val <= 1000

problem link:

https://leetcode.com/problems/sum-of-left-leaves/

@aishwarya-chandra
Copy link
Contributor

please this issue to me.

@avanimathur
Copy link
Contributor

Please assign it to me.
@kratika-Jangid @karishma-2020 @bh-g

@Tech-neophyte
Copy link
Contributor

Please assign this ques to me @bh-g @karishma-2020

@Shubh-Krishna
Copy link
Contributor

please assign this question to me :) @bh-g

1 similar comment
@priyagupta20044
Copy link
Contributor

please assign this question to me :) @bh-g

@Akansha77
Copy link
Contributor

please assign this issue to me.

@Karnankita04
Copy link
Contributor

@bh-g please assign this issue to me:)

@namita0210
Copy link
Contributor

@bh-g Please assign for a solution in Python

kratika-Jangid added a commit that referenced this issue Jan 27, 2024
Day22 q2: Sum of Left Leaves #464 , Day18 q1: max difference between Node and Ancestor .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants