上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文
posted @ 2019-04-28 14:20 小白兔云 阅读(118) 评论(0) 推荐(0)
摘要: 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. Example 阅读全文
posted @ 2019-04-28 11:12 小白兔云 阅读(130) 评论(0) 推荐(0)
摘要: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containing o 阅读全文
posted @ 2019-04-28 10:36 小白兔云 阅读(131) 评论(0) 推荐(0)
摘要: 代理模式 在代理模式里面,使用代理类控制对目标类的访问,通过代理对象控制对原对象的访问。这里的代理对象其实就是相当于是生活中的中介。 举个例子来说明:假如说我现在想买一辆二手车,虽然我可以自己去找车源,做质量检测等一系列的车辆过户流程,但是这确实太浪费我得时间和精力了。我只是想买一辆车而已为什么我还 阅读全文
posted @ 2019-04-27 18:08 小白兔云 阅读(176) 评论(0) 推荐(0)
摘要: Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns 阅读全文
posted @ 2019-04-26 15:09 小白兔云 阅读(167) 评论(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 have to 阅读全文
posted @ 2019-04-26 11:49 小白兔云 阅读(126) 评论(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 @ 2019-04-26 11:18 小白兔云 阅读(135) 评论(0) 推荐(0)
摘要: Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Example 2: 题目大意: 返回非负数数组数字组成的最大数字 解法: 利用java中自带 阅读全文
posted @ 2019-04-25 17:33 小白兔云 阅读(124) 评论(0) 推荐(0)
摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to 阅读全文
posted @ 2019-04-25 17:30 小白兔云 阅读(127) 评论(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 have to 阅读全文
posted @ 2019-04-25 17:17 小白兔云 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页