
树
低空飞行的
一枚奋勇争先的小菜鸡
展开
-
判断树是否对称 101. Symmetric Tree
题目要求:101. Symmetric Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 121475Total Submissions: 346144Difficulty: EasyGiven a binary tree, check原创 2016-08-10 17:50:00 · 298 阅读 · 0 评论 -
树的最低公共祖先
import java.util.LinkedList;import java.util.List;/** * Created by dikongfeixing on 16/8/10. */public class LowestCommonAncestorofaBinaryTree_236 { public TreeNode lowestCommonAncestor(TreeN原创 2016-08-10 22:23:46 · 369 阅读 · 0 评论 -
寻找二叉搜索树的第K小的节点
题目要求:230. Kth Smallest Element in a BST QuestionEditorial Solution My SubmissionsTotal Accepted: 58991Total Submissions: 148753Difficulty: MediumGiven a bin原创 2016-08-13 11:46:21 · 530 阅读 · 0 评论