1. 首页
  2. 数据库
  3. 其它
  4. Lowest Common Ancestor of Deepest Leaves

Lowest Common Ancestor of Deepest Leaves

上传者: 2021-01-30 12:18:57上传 PDF文件 31.66KB 热度 15次
Given a rooted binary tree, return the lowest common ancestor of its deepest leaves. Recall that: The node of a binary tree is a leaf if and only if it has no children The depth of the root of the tree is 0, and if the depth of a node is d, the depth of each of its children is d+1. The lowest comm
下载地址
用户评论