//将所有div下的所有li的名字设为"哈哈",当点击的时候设为"我被点击了",其余没有点击的依然设为“哈哈”
$(function () {
var ss = $("div li"); //获取div下的所有li元素
$.each(ss, function () { //遍历获取到的这些li元素
$(...
分类:
其他好文 时间:
2014-07-27 23:47:49
阅读次数:
190
Problem DescriptionFor each prefix with length P of a given string S,ifS[i]=S[i+P] for i in [0..SIZE(S)-p-1],then the prefix is a “period” of S. We wa...
分类:
其他好文 时间:
2014-07-27 22:27:09
阅读次数:
249
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space....
分类:
编程语言 时间:
2014-07-27 21:26:35
阅读次数:
267
Tautology
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9446
Accepted: 3596
Description
WFF 'N PROOF is a logic game played with dice. Each die has six...
分类:
其他好文 时间:
2014-07-27 11:32:12
阅读次数:
219
我的需求的,文章要选择封面,用查找带回实现,看了查找带回函数bringBack的代码发现,都是针对input 标签处理的,所以img标签始终不能显示,所以对dwz的源代码做了修改,在dwz.databases.js 中找到函数bringBackSuggest,增加代码如下代码即可:$box.find(":img").each(function(){
var $input = $(this)...
分类:
其他好文 时间:
2014-07-27 11:16:52
阅读次数:
239
题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e....
分类:
编程语言 时间:
2014-07-27 11:04:52
阅读次数:
278
题目:The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return a....
分类:
编程语言 时间:
2014-07-27 11:00:22
阅读次数:
262
10628. Count on a treeProblem code: COTYou are given a tree with N nodes.The tree nodes are numbered from 1 to N.Each node has an integer weight.We wi...
分类:
其他好文 时间:
2014-07-27 10:31:42
阅读次数:
304
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:
其他好文 时间:
2014-07-27 10:05:32
阅读次数:
352
Game PredictionSuppose there are M people, including you, playing a special card game. At the beginning, each player r...
分类:
其他好文 时间:
2014-07-27 09:44:42
阅读次数:
395