题目Difficulty:EasyTopics:core-functionsGiven a function f and a sequence s, write a function which returns a map. The keys should be the values of f ap...
分类:
其他好文 时间:
2014-11-26 20:40:48
阅读次数:
144
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
系统相关 时间:
2014-11-26 18:35:59
阅读次数:
215
Problem 1752 A^B mod CAccept: 750Submit: 3205Time Limit: 1000 mSecMemory Limit : 32768 KBProblem DescriptionGiven A,B,C, You should quickly calculate ...
分类:
其他好文 时间:
2014-11-26 15:58:42
阅读次数:
217
Problem D - Maximum ProductTime Limit: 1 secondGiven a sequence of integersS = {S1, S2, ..., Sn}, you should determine what is the value of the maximu...
分类:
其他好文 时间:
2014-11-26 14:08:20
阅读次数:
193
在安装Ecshop的时候,遇到两个问题: 1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically inD:\X\www\ecshop\install\include.....
分类:
其他好文 时间:
2014-11-26 13:43:21
阅读次数:
161
Box2D最早是Erin Catto在GDC大会上的一个展示例子,后来不断完善成C++的开源物理引擎库,这些年了衍生出Java、ActionScript以及JS等版本,被广泛应用在游戏领域。说其丰富的确很丰富,说乱也够乱的,找个Box2D的JS版就有N多选择,而且不同版本API还有差异,可参考这里的对比 http://stackoverflow.com/questions/7628078/which-box2d-javascript-library-should-i-use
虽然版本较多有点乱,但各个版本的...
分类:
Web程序 时间:
2014-11-25 23:37:30
阅读次数:
292
题目描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:
其他好文 时间:
2014-11-25 23:22:06
阅读次数:
206
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-11-25 22:47:09
阅读次数:
163
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-11-25 16:19:11
阅读次数:
142
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2014-11-25 14:35:41
阅读次数:
150