【LeetCode】98. Validate Binary Search Tree Difficulty:Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/validate-binary-search-tree/ Given zangdaiyang 2019-10-28 10:18:32
【LeetCode】102. Binary Tree Level Order Traversal Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/binary-tree-level-order-traversal/ us0 2019-11-04 13:09:54
合并K个排序链表 中英题面 合并k个排序链表,返回合并后的排序链表。请分析和描述算法的复杂度。时间复杂度: O(NlogK) 空间复杂度: O(logK) 代码 impressyourcat 2018-05-20 05:10:47
[Leetcode] Sliding Window Summary Template from https://leetcode.com/problems/minimum-window-substring/discuss/26808/Here-is-a-10-line-template-that-can-s zangdaiyang 2019-12-05 00:51:49
排序链表 中英题面 在O(nlogn) 时间复杂度和常数级空间复杂度下,对链表进行排序。时间复杂度: O(NlogN) 空间复杂度: O(1) 代码 真匿名打脸爱好者 2018-05-20 06:10:14
[LeetCode] 11. Container With Most Water 装最多水的容器 All LeetCode Qu 用暴力搜索Brute Force, Time: O(n2)会超时。使用双指针two pointers。定义left,right两个指针,两指针相遇循环结束。何时移动左右指针呢,保留较高的柱子,移动较矮的柱子。 稀土 2018-03-03 08:10:33
X2JB XML 2 Java Binding is a Java development tool intended for binding of XML entities to Java interfaces and classes . In theory it is kind of like JAXB, XML Beans or Jakarta Commons Digester but without their complexity. It uses annotations to map attribut 2008-09-14 06:04:47
[LeetCode] 301. Remove Invalid Parentheses 移除非法括号 首先,如何判断括号是否合法。可以用栈,这也是栈这个数据结构的一个典型应用。也可用一个count计数器,遇到左括号++,右括号--,一旦count小于0,就说明不合法。比较推荐count方式,空间复杂度较低。 MATLAB 2018-02-28 06:10:17
PHP面试:常见查找算法一篇说透 它是执行搜索的最基本的方式。插值搜索是对二分搜索算法的改进,插值搜索可以基于搜索的值选择到达不同的位置。指数搜索 在二分搜索中,我们在整个列表中搜索给定的数据。指数搜索通过决定搜索的下界和上界来改进二分搜索,这样我们就不会搜索整个列表。 SongLynn 2019-06-28 14:14:21