1. 首页
  2. 数据库
  3. 其它
  4. 【leetcode】【medium】129. Sum Root to Leaf Numbers​​​​​​​

【leetcode】【medium】129. Sum Root to Leaf Numbers​​​​​​​

上传者: 2021-01-16 08:25:10上传 PDF文件 30.16KB 热度 14次
129. Sum Root to Leaf Numbers Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. Note: A leaf is a node with no children. Ex
用户评论