码迷,mamicode.com
首页 >  
搜索关键字:lintcode    ( 1584个结果
LintCode 5---第k大元素
import java.util.Arrays; public class Lint5 { /* * 第k大的元素 */ public static void main(String[] args) { int[] nums = new int[] {1,4,5,6,2}; System.out.p... ...
分类:其他好文   时间:2019-05-06 01:03:56    阅读次数:147
5 - Binary Tree & Tree-based DFS
900. Closest Binary Search Tree Value https://www.lintcode.com/problem/closest-binary-search-tree-value/description?_from=ladder&&fromId=1 1. 非递归方法:求B ...
分类:其他好文   时间:2019-05-03 09:48:33    阅读次数:163
4 - BFS & Topological Algorithm
127. Topological Sorting https://www.lintcode.com/problem/topological-sorting/description?_from=ladder&&fromId=1 1. 用Map来存储入度。可以用数组来存吗?不可以。 Map<Direct ...
分类:其他好文   时间:2019-05-02 09:45:05    阅读次数:121
背包型动态规划
92. Backpack https://www.lintcode.com/problem/backpack/description?_from=ladder&&fromId=16 public class Solution { /** * @param m: An integer m denote ...
分类:其他好文   时间:2019-05-01 13:22:19    阅读次数:144
动态规划2
坐标型 115. Unique Paths II https://www.lintcode.com/problem/unique-paths-ii/description?_from=ladder&&fromId=16 public class Solution { /** * @param obs ...
分类:其他好文   时间:2019-04-30 19:46:20    阅读次数:257
Sweep Line
391. Number of Airplanes in the Sky https://www.lintcode.com/problem/number-of-airplanes-in-the-sky/description?_from=ladder&&fromId=4 思路:将起飞时间和降落时间放到 ...
分类:其他好文   时间:2019-04-29 20:59:57    阅读次数:197
3 - Two Pointers Algorithm
143. Sort Colors II (quick sort 变种) https://www.lintcode.com/problem/sort-colors-ii/description?_from=ladder&&fromId=1 57. 3Sum https://www.lintcode.c ...
分类:其他好文   时间:2019-04-27 09:37:01    阅读次数:112
Basic Calculator - Stack(表达式计算器)
978. Basic Calculator https://www.lintcode.com/problem/basic-calculator/description public class Solution { /** * @param s: the given expression * @re ...
分类:其他好文   时间:2019-04-26 11:23:36    阅读次数:151
(链表) lintcode 219. Insert Node in Sorted Linked List
Description Insert a node in a sorted linked list. Description Description Insert a node in a sorted linked list. Insert a node in a sorted linked lis ...
分类:其他好文   时间:2019-04-23 19:25:46    阅读次数:134
3 - Two Pointers Algorithm
607. Two Sum III - Data structure design (查找问题:从 map 中查找一个元素) 双指针:用一个指针遍历 map 所有元素,用另一个指针在 map 中找 remain https://www.lintcode.com/problem/two-sum-iii- ...
分类:其他好文   时间:2019-04-21 09:21:59    阅读次数:166
1584条   上一页 1 ... 6 7 8 9 10 ... 159 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!