LeetCode
文章平均质量分 63
beautyz
这个作者很懒,什么都没留下…
展开
-
LeetCode解题之101.Symmetric Tree(Java)
题目描述: 101.Symmetric Tree Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree[1,2,2,3,4,4,3]is symmetric: 1 / \ ...原创 2019-04-26 14:34:51 · 200 阅读 · 1 评论 -
LeetCode解题之104. Maximum Depth of Binary Tree(Java)
题目描述: 104. Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf nod...原创 2019-04-26 15:58:21 · 167 阅读 · 0 评论 -
LeetCode解题之102.Binary Tree Level Order Traversal(Java)
题目描述: 102.Binary Tree Level Order Traversal Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree[3,...原创 2019-04-26 11:19:16 · 157 阅读 · 1 评论 -
LeetCode算法题之一
LeetCode算法题之一 题目描述: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating p...原创 2018-09-05 19:09:37 · 225 阅读 · 1 评论 -
LeetCode经典算法题之Factorial Trailing Zeroes
LeetCode(172) Factorial Trailing Zeroes 题目描述: Given an integern, return the number of trailing zeroes inn!. Note:Your solution should be in logarithmic time complexity. 即:给定一个数,求其阶乘的结果的尾部0的个数。 ...原创 2018-09-06 15:57:01 · 126 阅读 · 0 评论 -
LeetCode解题之100. Same Tree
题目描述: 100.Same Tree Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have th...原创 2019-04-26 16:17:49 · 145 阅读 · 0 评论