参考:http://qianduanblog.com/post/js-learning-30-object-clone-copy.html基本数据类型:Boolean/Number/Stringvar a='a';var b;b=a;b='b';console.log(a);console.log(...
分类:
其他好文 时间:
2015-08-02 21:23:04
阅读次数:
117
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-08-02 21:19:04
阅读次数:
81
Problem Description
Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together.
H...
分类:
其他好文 时间:
2015-08-02 20:08:32
阅读次数:
139
原题DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers...
分类:
其他好文 时间:
2015-08-02 19:48:34
阅读次数:
151
select top 100 --每页显示数据记录数contractid,contractName from (select ContractId,ContractName,ROW_NUMBER() over(order by contractname desc) as rownum from .....
分类:
其他好文 时间:
2015-08-02 19:42:20
阅读次数:
139
题目链接:
UVA11882
解题思路:
常规思路是 枚举每个点,暴力dfs,然后选择最大的那个 但题目只给了1000MS 这就需要剪枝了
剪枝1:
假设当前答案长度为ans,那么当我们走到一个点(x, y)的时候,bfs一下判断能接触的格子数。假设现在能从(x, y)走到的点,我们都能到达,这是最好的情况。设从(x, y)能走到的点数为maxlen,那么如...
分类:
其他好文 时间:
2015-08-02 18:24:09
阅读次数:
115
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 numbers such that they add up to the target, where in...
分类:
其他好文 时间:
2015-08-02 18:20:21
阅读次数:
112
DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in ...
分类:
其他好文 时间:
2015-08-02 18:13:37
阅读次数:
124
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ...
分类:
其他好文 时间:
2015-08-02 18:02:21
阅读次数:
158
#include void test(){//1+2+3+4+.....+100 int a,b; a=0; b=0; for ( ; a#includeint main(){int n,i,k;printf("please enter a integer number:n=?");scan...
分类:
编程语言 时间:
2015-08-02 15:08:37
阅读次数:
130