码迷,mamicode.com
首页 >  
搜索关键字:lowest    ( 451个结果
235. Lowest Common Ancestor of a Binary Search Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:其他好文   时间:2017-10-30 11:25:42    阅读次数:150
[LeetCode] Minimum ASCII Delete Sum for Two Strings 两个字符串的最小ASCII删除和
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:其他好文   时间:2017-10-30 01:29:34    阅读次数:386
Trim a Binary Search Tree
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:其他好文   时间:2017-10-29 18:47:53    阅读次数:207
669. Trim a Binary Search Tree
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:其他好文   时间:2017-10-22 21:42:12    阅读次数:103
235. Lowest Common Ancestor of a Binary Search Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:其他好文   时间:2017-10-22 00:32:00    阅读次数:143
[LeetCode] Top K Frequent Words 前K个高频词
Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h ...
分类:其他好文   时间:2017-10-19 00:16:48    阅读次数:250
Leetcode 669. Trim a Binary Search Tree
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:其他好文   时间:2017-10-16 23:20:36    阅读次数:174
*lintcode578- Lowest Common Ancestor III- medium
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node with large ...
分类:其他好文   时间:2017-10-12 14:00:02    阅读次数:205
lintcode474- Lowest Common Ancestor II- easy
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes. The lowest common ancestor is the node with larg ...
分类:其他好文   时间:2017-10-12 10:13:51    阅读次数:154
lintcode88- Lowest Common Ancestor I- medium
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes. The lowest common ancestor is the node with larg ...
分类:其他好文   时间:2017-10-11 14:04:20    阅读次数:175
451条   上一页 1 ... 12 13 14 15 16 ... 46 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!