Surprised => indulgence => Calm => Lost => Panic =>Calm

算法-每天一道题(26)-404. Sum of Left Leaves-二叉树

算法 admin 958℃ 0评论

Find the sum of all left leaves in a given binary tree.

Example:
3
/ \
9 20
/ \
15 7

There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24.

Go语言

转载请注明:Imekaku-Blog » 算法-每天一道题(26)-404. Sum of Left Leaves-二叉树

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址