jquery.data()文档:http://api.jquery.com/jQuery.data/html5有个data-*属性,跟这个功能一样。Note:This is a low-level method; a more convenient.data()is also available.T...
分类:
Web程序 时间:
2014-08-01 22:43:22
阅读次数:
351
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.编程珠玑中的一道题,书中的解法很巧妙,我就直接搬来用了,时...
分类:
其他好文 时间:
2014-08-01 22:37:32
阅读次数:
162
描述:注意需要先self.connect(right)再self.connect(left),否则会有case通不过,原因是左边递归执行时依赖与右边的next已经建立,而先执行connect(left)的话右边还没有完成关系的建立。代码: 1 class Solution: 2 # @par...
分类:
其他好文 时间:
2014-08-01 19:15:42
阅读次数:
223
Problem Description:
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
分析:题目要求输出找出所有在字符串数组中的变形词,变形词的意思是指单词由相同的字母构成,只是字母在单词中的顺序...
分类:
其他好文 时间:
2014-08-01 16:09:01
阅读次数:
164
看到这个问题,第一个反应是真变态啊。 然后,直觉是不能用循环就只能用递归了。可递归怎么跳出来却遇到了麻烦, 我连goto语句都考虑了也没弄好。后来想到一个非常NC的方法:查找表。 如果n限定一个比较小的范围直接用查找表好了。 但题目的目的肯定不是这样的.....后来,我转换了一下思路 1+2...+...
分类:
其他好文 时间:
2014-08-01 15:43:01
阅读次数:
265
Collecting Bugs
Time Limit: 10000MS
Memory Limit: 64000K
Total Submissions: 2341
Accepted: 1126
Case Time Limit: 2000MS
Special Judge
Description
Ivan is fon...
分类:
其他好文 时间:
2014-08-01 13:35:51
阅读次数:
199
题目大意:给你一个网络组,每台机子与其他机子的关系,让你找到所有的割点,如果没有割点,输出无这道题目就是最直接的求割点问题,我在这里用的是邻接矩阵来存储机子之间的关系割点问题的求解需要对深度优先搜索序数有比较好的理解dfn[]用于存储当前的优先搜索序数,low[]存储当前点通过子节点或是回路所能达到...
分类:
其他好文 时间:
2014-08-01 13:26:51
阅读次数:
220
ultrafine crusher is a single machine and also a new type of ore crushing device with high input, high crushing ratio, high output and low energy cons...
分类:
其他好文 时间:
2014-08-01 10:32:51
阅读次数:
192
Climbing StairsYou are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct way...
分类:
其他好文 时间:
2014-08-01 04:37:21
阅读次数:
244
Q. What does XL stand for? XL is short for eXtensible Lattice. It also connotes an extra large version of PostgreSQL, in this case across multiple systems. Q. Is this a “NoSQL” solution? No, Post...
分类:
其他好文 时间:
2014-08-01 00:17:51
阅读次数:
358