Problem Description:
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 numbe...
分类:
其他好文 时间:
2014-07-31 20:47:17
阅读次数:
215
随着互联网的飞速发展,前端开发越来越复杂。本文将从实际项目中遇到的问题出发,讲述模块化能解决哪些问题,以及如何使用 Sea.js 进行前端的模块化开发。恼人的命名冲突我们从一个简单的习惯出发。我做项目时,常常会将一些通用的、底层的功能抽象出来,独立成一个个函数,比如function each(arr...
分类:
Web程序 时间:
2014-07-31 20:25:47
阅读次数:
355
.find('classname')//在里面找类名为——的元素.eq(i)//元素的第i个.parent()//父元素.child()//子元素$.each(element,function(i,val){});//遍历元素中的每个并且添加操作.removeClass('className')/....
分类:
Web程序 时间:
2014-07-31 20:17:17
阅读次数:
232
Colored SticksTime Limit: 5000MSMemory Limit: 128000KTotal Submissions: 30037Accepted: 7924DescriptionYou are given a bunch of wooden sticks. Each end...
分类:
其他好文 时间:
2014-07-31 16:42:16
阅读次数:
173
var i = 0;$("input[name='checkbox[]']:checked").each(function(){ i++;});if(i<1){ //如果i=0 证明没有选中一个checkbox alert("您没有勾选任何计划"); return false;}
分类:
其他好文 时间:
2014-07-31 16:26:16
阅读次数:
194
循环 each() 参数:循环的对象,每次循环执行的函数,函数的参数(不传默认为对象本身)var lbl = $("#lbls > i");var str = "";Each(lbl, function (i) { str += i.innerHTML.trim()+","; });var arr ...
分类:
其他好文 时间:
2014-07-31 12:38:06
阅读次数:
241
Red and BlackTime Limit:2 Seconds Memory Limit:65536 KBThere is a rectangular room, covered with square tiles. Each tile is colored either red or blac...
分类:
其他好文 时间:
2014-07-31 12:18:26
阅读次数:
213
$("#lblContents :checkbox").each(function () { if (this.checked) { this.checked = false; ids =""; } else { this.checked = true; ids += $(this)....
分类:
其他好文 时间:
2014-07-31 12:15:46
阅读次数:
237
Aeroplane chess
Problem Description
Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice hav...
分类:
其他好文 时间:
2014-07-31 09:49:57
阅读次数:
208
Description
Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A <= B <= 1,000,000), which includes both times ...
分类:
其他好文 时间:
2014-07-31 09:49:36
阅读次数:
211