码迷,mamicode.com
首页 >  
搜索关键字:kth    ( 692个结果
第七讲继承与接口动手实验和动手动脑
【动手实验一】 继承条件下的构造方法调用 运行 TestInherits.java 示例,观察输出,注意总结父类与子类之间构造方法的调用关系修改Parent构造方法的代码,显式调用GrandParent的另一个构造函数,注意这句调用代码是否是第一句,影响重大! 结论:通过 super 调用基类构造方 ...
分类:其他好文   时间:2016-11-11 01:01:17    阅读次数:186
温故而知新
2 4 4 0 ...
分类:其他好文   时间:2016-11-04 23:47:03    阅读次数:331
Leetcode:378. Kth Smallest Element in a Sorted Matrix
题目: Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it i ...
分类:其他好文   时间:2016-11-02 17:17:55    阅读次数:156
leetcode 119 Pascal's Triangle II ----- java
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm to us ...
分类:编程语言   时间:2016-11-02 00:37:38    阅读次数:216
[LeetCode] Word Squares 单词平方
Given a set of words (without duplicates), find all word squares you can build from them. A sequence of words forms a valid word square if the kth row ...
分类:其他好文   时间:2016-10-28 02:42:37    阅读次数:195
378. Kth Smallest Element in a Sorted Matrix
和merge k sorted linked list是一样的,不同就是自己要打一个包建一个类,然后建一个pq 时间复杂度是O(klogn). n = matrix.length ...
分类:其他好文   时间:2016-10-24 09:42:13    阅读次数:257
[LeetCode] Valid Word Square 验证单词平方
Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read th ...
分类:其他好文   时间:2016-10-24 07:47:22    阅读次数:330
leetcode算法思想快速一览
最近在看八股文。整理了一下思路,想深入了解还得多去写,无奈时间紧迫的情况下抛砖引玉也不失为下策: 1.Two Sum Easy 给出一个数组,找出其中两个和为目标值的坐标。思路: [1]排序。 和为目标值,一般的思路是先排序,然后取两点坐标分别从首尾向中间移动。若和为目标值则返回两点坐标。若和大于目 ...
分类:编程语言   时间:2016-10-22 14:48:35    阅读次数:171
hdoj 2665 Kth number主席树裸
Kth number Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9417 Accepted Submission(s): 2938 Pro ...
分类:其他好文   时间:2016-10-06 20:09:05    阅读次数:175
POJ 2104&HDU 2665 Kth number(主席树入门+离散化)
K-th Number Time Limit: 20000MS Memory Limit: 65536K Total Submissions: 50247 Accepted: 17101 Case Time Limit: 2000MS Description You are working for ...
分类:其他好文   时间:2016-10-03 16:57:16    阅读次数:166
692条   上一页 1 ... 38 39 40 41 42 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!