- 博客(4)
- 收藏
- 关注
原创 Leatcode 872-Leaf Similar Tree(叶子相似的树)
Leatcode 872-Leaf Similar Tree(叶子相似的树)题目描述Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence.For example, in the given tree a...
2018-10-21 18:47:35
277
原创 Leetcode 107-Binary Tree Level Order Traversal II(二叉树的层次遍历II)
Leetcode 107-Binary Tree Level Order Traversal II(二叉树的层次遍历II)题目描述给定一个二叉树,返回其节点值自底向上的层次遍历。 (即按从叶子节点所在层到根节点所在的层,逐层从左向右遍历)例如:给定二叉树 [3,9,20,null,null,15,7],3/ 9 20/ 15 7返回其自底向上的层次遍历为:[[15...
2018-10-20 14:29:52
201
原创 Leetcode257-Binary Tree Paths(二叉树的所有路径)
Leetcode257-Binary Tree Paths问题描述:Given a binary tree, return all root-to-leaf paths.Note: A leaf is a node with no children.Example:Input:1/ 2 35Output: [“1->2->5”, “1->3”]...
2018-10-20 14:19:55
199
原创 Leetcode 0008-String to Integer(atoi)(字符串转整数)
Leetcode 0008-String to Integer(atoi)题目描述:Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace ...
2018-10-20 14:06:50
241
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅