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 two nu...
分类:
其他好文 时间:
2014-09-22 23:28:53
阅读次数:
160
class Solution {public: // a valid number should be in the below form // -/+digit.digitE/e+/-digit bool isNumber(const char *s) { if (...
分类:
其他好文 时间:
2014-09-22 12:05:32
阅读次数:
180
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the ...
分类:
其他好文 时间:
2014-09-21 07:23:30
阅读次数:
370
a letter and a number
时间限制:3000 ms | 内存限制:65535 KB
难度:1
描述we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;
Give you a letter x and a number y , you should...
分类:
其他好文 时间:
2014-09-20 17:26:19
阅读次数:
192
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-09-20 05:40:07
阅读次数:
282
Give this a shot. In Visual Studio 2010, open your app.config or web.config file. Go to the XML menu and select Create Schema. This action should crea...
分类:
Web程序 时间:
2014-09-20 03:32:36
阅读次数:
231
原版:http://www.codeproject.com/Articles/570638/Ten-Cplusplus-Features-Every-Cplusplus-Developer译版:http://blogs.ejb.cc/archives/7190/top-10-new-features...
分类:
编程语言 时间:
2014-09-20 01:03:46
阅读次数:
228
In the recent days, since the overwork made me exhaused, on arrival to home I will go to bed, which leads to loss of blogs that should have been written in the past days.
Now I make a summay to all...
分类:
数据库 时间:
2014-09-19 02:20:04
阅读次数:
323
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime compl....
分类:
其他好文 时间:
2014-09-18 23:33:14
阅读次数:
292
好久没有做题啦,从今天开始刷Leetcode的题,希望坚持的时间能长一点。先从ac率最高的Single Number开始吧。
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should hav...
分类:
其他好文 时间:
2014-09-17 20:30:53
阅读次数:
254