Fence RepairTime Limit: 2000MSMemory Limit:
65536KTotal Submissions: 24252Accepted: 7766DescriptionFarmer John wants to
repair a small length of the f...
分类:
其他好文 时间:
2014-05-26 15:12:15
阅读次数:
193
今天有个需求,要做个排行榜。后台Json传过来,坑爹的是要在前台排序。心想,排序还不简单,什么折半冒泡之类的。代码如下:var userList =
json....//外层循环,共要进行arr.length次求最大值操作 for(var i=0;i<arr.length;i++){ ...
分类:
Web程序 时间:
2014-05-26 14:53:38
阅读次数:
250
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
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
问题 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