标签: leetcode
-
113. Path Sum II
Given a binary tree and a sum, find all root-to-leaf pa…
-
LeetCode29.两数相除 JavaScript
给定两个整数,被除数 dividend和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算…
-
LeetCode28.实现strStr() JavaScript
给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needl…
-
103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order trav…
-
LeetCode27.移除元素 JavaScript
给定一个数组 nums 和一个值 val,你需要原地移除所有数值等于 val 的元素,返回移除后数组的新长度。
-
395. Longest Substring with At Least K Repeating Characters
这是一个经典的分治法解决的问题,关键在于我们如何将这个问题分解为更小的子问题。反过来想,这个子字符串一定不包含…
-
95. Unique Binary Search Trees II
Given an integer n, generate all structurally unique BS…
-
98. Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary …
-
114. Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-pla…
-
96. Unique Binary Search Trees
Given n, how many structurally unique BST’s (binary sea…