1. leetcode http://leetcode.com/ 2. careerup http://www.careercup.com/ http://hawstein.com/posts/ctci-solutions-contents.html 3. glassdoor http://www. ...
分类:
编程语言 时间:
2016-09-18 23:40:05
阅读次数:
310
18.12 Given an NxN matrix of positive and negative integers, write code to find the submatrix with the largest possible sum. 这道求和最大的子矩阵,跟LeetCode上的Max ...
分类:
其他好文 时间:
2016-05-13 14:23:24
阅读次数:
211
18.11 Imagine you have a square matrix, where each cell (pixel) is either black or white. Design an algorithm to find the maximum subsquare such that ...
分类:
其他好文 时间:
2016-05-12 01:28:41
阅读次数:
177
18.10 Given two words of equal length that are in a dictionary, write a method to transform one word into another word by changing only one letter at ...
分类:
其他好文 时间:
2016-05-11 01:14:15
阅读次数:
219
18.9 Numbers are randomly generated and passed to a method. Write a program to find and maintain the median value as new values are generated. LeetCod ...
分类:
其他好文 时间:
2016-05-09 23:34:07
阅读次数:
261
18.8 Given a string s and an array of smaller strings T, design a method to search s for each small string in T. 参考资料: 从Trie树(字典树)谈到后缀树 CareerCup All ...
分类:
其他好文 时间:
2016-05-09 06:54:27
阅读次数:
119
5.7 Given a list of words, write a program to find the longest word made of other words in the list. 这道题给了我们一个字符串数组,让我们找到最长的那个单词是由字符串数组中的其他单词组成的,LeetC ...
分类:
其他好文 时间:
2016-05-08 06:40:02
阅读次数:
197
18.6 Describe an algorithm to find the smallest one million numbers in one billion numbers. Assume that the computer memory can hold all one billion n ...
分类:
其他好文 时间:
2016-05-07 06:37:17
阅读次数:
177
18.4 Write a method to count the number of 2s between 0 and n. 这道题给了我们一个整数n,让我们求[0,n]区间内所有2出现的个数,比如如果n=20,那么满足题意的是2, 12, 20,那么返回3即可。LeetCode上有一道很类似的题F ...
分类:
其他好文 时间:
2016-05-04 22:56:10
阅读次数:
200
18.3 Write a method to randomly generate a set of m integers from an array of size n. Each element must have equal probability of being chosen. 这道题让我们 ...
分类:
其他好文 时间:
2016-05-04 01:21:12
阅读次数:
203