上一页 1 2 3 4 5 6 ··· 31 下一页
摘要: 题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For 阅读全文
posted @ 2017-07-17 07:23 panini 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
posted @ 2017-07-17 06:55 panini 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containi 阅读全文
posted @ 2017-07-15 11:43 panini 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement a trie with insert, search, and startsWith methods. 链接: http://leetcode.com/problems/implement-trie-prefix-tree/ 7/14/201760%,照着课件代码改写的。 阅读全文
posted @ 2017-07-15 08:00 panini 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you ha 阅读全文
posted @ 2017-07-15 00:50 panini 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2017-07-06 02:09 panini 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 自己的理解,更全面的需要额外查。 class可以implements Comprable interface,此class也必须有compareTo method,Comparable必须作用在compatible的数据上,否则compareTo会throw ClassCastException。C 阅读全文
posted @ 2017-07-04 19:55 panini 阅读(145) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-07-01 07:33 panini 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range 阅读全文
posted @ 2017-06-26 20:23 panini 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For 阅读全文
posted @ 2017-06-25 22:24 panini 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 31 下一页