标签: leetcode
-
Leetcode-PHP题解D45-872-LeafSimilar-Trees
D45 872. Leaf-Similar Trees 题目链接 872. Leaf-Similar Tree…
-
Leetcode-PHP题解D44-590-Nary-Tree-Postorder-Traversal
D44 590. N-ary Tree Postorder Traversal 题目链接 590. N-ary…
-
Leetcode-PHP题解D42-559-Maximum-Depth-of-Nary-Tree
D42 559. Maximum Depth of N-ary Tree 题目链接 559. Maximum …
-
leetcode449-Serialize-and-Deserialize-BST
将二叉搜索树序列化和反序列化,序列化是指将树用字符串的形式表示,反序列化是指将字符串形式的树还原成原来的样子。
-
Leetcode-PHP题解D41-104-Maximum-Depth-of-Binary-Tree
104. Maximum Depth of Binary Tree 题目链接 104. Maximum Dep…
-
leetcode429-Nary-Tree-Level-Order-Traversal
这个和一般的水平遍历有所区别,因为它会记录每一行的水平遍历结果分别存在结果数组相应行。因此首先可以用水平遍历的…
-
小李飞刀刷题第十三弹
215. 数组中的第K个最大元素难度:中等在未排序的数组中找到第k个最大的元素。请注意,你需要找的是数组排序后…
-
LeetCode-Easy014-Longest-Common-Prefix
find the longest common prefix string amongst an array …
-
【LeetCode Easy】009 Palindrome Number
Determine whether an integer is a palindrome. An intege…
-
【LeetCode Easy】013 Roman to Integer
将罗马字母的字符串转换为代表的整数Roman numerals are usually written lar…