摘要: 题目:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concat... 阅读全文
posted @ 2015-06-05 20:48 可爱的波儿胖 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen lef... 阅读全文
posted @ 2015-06-05 15:13 可爱的波儿胖 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目:There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sho... 阅读全文
posted @ 2015-06-04 20:36 可爱的波儿胖 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following m... 阅读全文
posted @ 2015-06-04 16:03 可爱的波儿胖 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at... 阅读全文
posted @ 2015-06-04 14:02 可爱的波儿胖 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 题目:Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a r... 阅读全文
posted @ 2015-06-03 16:13 可爱的波儿胖 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 题目:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to f... 阅读全文
posted @ 2015-06-02 20:54 可爱的波儿胖 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return ... 阅读全文
posted @ 2015-06-02 10:46 可爱的波儿胖 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目:Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of... 阅读全文
posted @ 2015-06-02 10:23 可爱的波儿胖 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目:Implement a trie withinsert,search, andstartsWithmethods.// Your Trie object will be instantiated and called as such:// Trie trie = new Trie();// t... 阅读全文
posted @ 2015-06-02 10:04 可爱的波儿胖 阅读(548) 评论(0) 推荐(0) 编辑

友情链接 : CodeForge源码分享