add by zhj: 《RESTful Web Services
Cookbook》这本书详细介绍了RESTFUL
API的设计。原文:http://www.ruanyifeng.com/blog/2014/05/restful_api.html 作者:阮一峰
网络应用程序,分为前端和后端两个部分...
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-05-26 19:50:39
阅读次数:
314
0. 新建一个等待测试的业务类,并添加待测试的方法: a.
新建一个名为Junit2的android应用工程; b.
在android工程中新建一个名为Demo的类,并添加save和add两个方法,代码如下:package com.example.junit2;public
clas...
分类:
移动开发 时间:
2014-05-25 22:52:40
阅读次数:
403
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
人们常说“细节决定成败”。
编码工作中,同样需要关注细节。
本文将给出3个小实例来说明编码中关注细节的重要性,同时给出作者对如何注意编码细节的一点见解(说的不对,请指正)。
例1 这个问题如此地显而易见,竟然没有被发现。
List numList = new List();
numList.Add(3);
numList.Add(1);
numList.Add(4);
numList.Ad...
分类:
其他好文 时间:
2014-05-25 21:14:17
阅读次数:
223
Graphic SequenceA graphic sequence is a
sequence of numbers which can be thedegree sequenceof somegraph. A sequence can
be checked to determine if it ...
分类:
其他好文 时间:
2014-05-25 19:18:00
阅读次数:
331
引言数学计算的模拟类题目,往往是要求实现某种计算(比如两数相除),实现的过程中会有所限定,比如不允许乘法等等。这类题目首先要注意计算过程中本身的特殊情况。比如求相除,则必须首先反映过来除数不能为0。其次要记得考虑负数的情况,如果计算范围不单单是整数,还要考虑double的比较方式。最后要注意越界情况...
分类:
其他好文 时间:
2014-05-25 19:10:39
阅读次数:
287
筛素数,分解质因子 1 //Accepted 620 KB 15 ms 2 //wa1 MAXN
太小了一开始用的10005; 3 //wa2 没判断素数 4 //wa3 分解质因子用的小于n 5 #include 6 #include 7 const
int MAXN = 1000...
分类:
其他好文 时间:
2014-05-25 14:52:12
阅读次数:
168
说明:由于图形化界面方法(如Add/Remove... 和Synaptic Package
Manageer)比较简单,所以这里主要总结在终端通过命令行方式进行的软件包安装、卸载和删除的方法。一、Ubuntu中软件安装方法1、APT方式(1)普通安装:apt-get
install softname...
分类:
其他好文 时间:
2014-05-25 12:29:55
阅读次数:
256
1.JS include :DOM BOM ECMA2.Browser 分别独立实现dom &
JSas if two isolated islands3.JS操作DOMfrom the island to the other one4.DOM性能The
bridges between island...
分类:
其他好文 时间:
2014-05-25 11:28:12
阅读次数:
246