罗列了影片《刺杀金正恩》(The Interview)中一些地理学和地球科学相关的错误设定和穿帮镜头。仅供娱乐。...
分类:
其他好文 时间:
2014-12-28 15:34:27
阅读次数:
211
很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍。
Chapter 1 | Arrays and Strings
1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional
data stru...
分类:
其他好文 时间:
2014-12-26 20:20:00
阅读次数:
452
BT(binary tree), want to find the LIS(largest independent set) of the BT. LIS: if the current node is in the set, then its children should not be in t...
分类:
其他好文 时间:
2014-12-24 08:40:08
阅读次数:
120
Given an array, determine whether there are three elements A[i],A[j],A[k], such that A[i]A[twoLen]) return true; 9 if (twoLen!=-1 && A[i]>...
分类:
其他好文 时间:
2014-12-24 06:25:20
阅读次数:
202
假设你是harry potter,在grid的左上角,你现在要走到右下角,grid中有正数也有负数,遇到正数表示你的strength增加那么多,遇到负数表示strength减少那么多,在任何时刻如果你的strength小于等于0,那么你就挂了。在一开始你有一定的初始的strength,现在问这个初始...
分类:
其他好文 时间:
2014-12-24 06:23:27
阅读次数:
166
https://github.com/h5bp/Front-end-Developer-Interview-Questions#contributors1. 一般性问题 What did you learn yesterday/this week?What excites or interests ...
分类:
其他好文 时间:
2014-12-18 11:45:57
阅读次数:
555
原文:http://www.infoq.com/cn/news/2014/03/interview-alibaba-wangjingyu对于大型的互联网业务来说,消息系统是必不可少的基础服务。 子柳 在《淘宝技术这十年》中为大家展示了阿里消息系统架构的概貌,作为集团业务使用的核心基础服务,目前消息系...
分类:
其他好文 时间:
2014-12-15 13:39:38
阅读次数:
153
Quesiton:Givenamethodlongcompute(inti)
{
return...
}Theerrorratep=1/10,000Anothermethodlongtotal(intn)
{
longs=0;
for(i=0;i<n;i++)
{
s+=compute(i);
}
returns;
}Thustheerrorrateisnp.Howtoimprovethesecondmethodtocontrolitsratebelowp.totalwillrunnsteps.Soto..
分类:
其他好文 时间:
2014-12-15 10:38:34
阅读次数:
211
Question:Givenanarray,doesitexistthati<j<kwhereA[i]<A[J]<[K].//Option1.
//Bruteforce.
//Givenanyindexi,returntrueifthereexists:
//A[m]<A[i],m<i
//A[n]>A[i],n>i
booleanhasLessInLeft(int[]a,inti)
{
for(intindex=0;index<i;index++)
{..
分类:
其他好文 时间:
2014-12-15 10:38:24
阅读次数:
178
Question:Atraditionalrussionsquareismadeby4blocks,andhas7differentpatterns.GivenNblocks,howmanydifferentpatternswouldbe.N=1,P#=1N=2,P#=1N=3,P#=3N=4,P#=7.AssumeN=k,P#=PkthenwhenN=k+1,P#=foreachPinPk,appendonemoreblockaroundP,removedups.classPattern
{
List<..
分类:
其他好文 时间:
2014-12-15 10:34:54
阅读次数:
150