URL 只是一个 路径 : 协议头:// 域名/ 资源 (就是要查询的内容)
比如http://m.baidu.com/s?word=iOS 上面的是 手机版的域名 UIWebView : 也是一个IOS 程序的控件 能拖 能用代码实现
能设置代理 ...
分类:
Web程序 时间:
2014-05-26 14:17:06
阅读次数:
310
DFS算法,非常容易TLE,需要一个boolean矩阵来记录是否访问过某个节点。写DFS主要就是两个方法:用recursion或者Stack,
用recursion会带来time和memory的cost增加,而且因为要用矩阵做argument,
所以非常担心TLE或者MLE的问题。但是用recurs...
分类:
其他好文 时间:
2014-05-26 13:03:20
阅读次数:
273
String.prototype.format = String.prototype.f =
function () { var s = this, i = arguments.length; while (i--) { s =
s.replace(new R...
分类:
编程语言 时间:
2014-05-26 10:49:23
阅读次数:
356
////html[1]/body[1]/div[9]/div[1]/div[1]/div[1]/ul/li
截取规则Articles/Article[1]:选取属于Articles子元素的第一个Article元素。/Articles/Article[last()]:选取属于Articles子元素的最...
分类:
其他好文 时间:
2014-05-26 09:03:19
阅读次数:
260
Word SearchGiven a 2D board and a word, find if
the word exists in the grid.The word can be constructed from letters of
sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-05-26 08:21:06
阅读次数:
310
数组属性length计算长度方法join()将数组元素组合成reverse()反转数组sort()进行排序内置函数eval(string)eval函数直接计算出string的值isNaN(变量)检验参数是否是一个数字,如果不是数字返回trueString对象属性length返回字符串的长度方法big...
分类:
编程语言 时间:
2014-05-26 08:15:15
阅读次数:
241
//获得本周(本天)时间戳的起始和结束//本周星期一时间戳$monday = mktime(0, 0,
0, date("m",strtotime("last Monday")) , date("d",strtotime("last Monday")),
date("Y",strtotime("la...
分类:
Web程序 时间:
2014-05-26 07:26:50
阅读次数:
279
问题 E: Distance
时间限制: 1 Sec 内存限制: 128 MB
提交: 48 解决: 12
[提交][状态][论坛]
题目描述
There is a battle field. It is a square with the side length 100 miles, and unfortunately we have two comrades who get ...
分类:
其他好文 时间:
2014-05-26 05:57:27
阅读次数:
325
官网的驱动需要多个文件,为了提取ENC28J60驱动,改写如下:
原数据类型定义:
typedef unsigned char BYTE; /* 8-bit unsigned */
typedef unsigned short int WORD;...
分类:
其他好文 时间:
2014-05-26 05:02:58
阅读次数:
488
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
For example:...
分类:
其他好文 时间:
2014-05-24 20:44:39
阅读次数:
221