对li标签的相关操作——8种方式获取li标签的第一个元素的内容1、alert($("ul>li").first().html());2、alert($('ul>li').eq(0).html());3、alert($('ul>li:nth-child(1)').html()); 4、alert($(...
分类:
Web程序 时间:
2015-01-16 12:40:33
阅读次数:
183
Consider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere on the base. Each step can...
分类:
其他好文 时间:
2015-01-16 10:05:03
阅读次数:
153
《1》标识符关于Java标识符,有以下几点需要注意:1. 所有的标识符都应该以字母(A-Z或者a-z),美元符($)、或者下划线(_)开始2. 首字符之后可以是任何字符的组合3. 关键字不能用作标识符4. 标识符是大小写敏感的合法标识符举例:age、$salary、_value、__1_value非...
分类:
其他好文 时间:
2015-01-15 12:39:37
阅读次数:
135
find the nth digit
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8801 Accepted Submission(s): 2504
Problem Description
假设:
S1 = 1...
分类:
其他好文 时间:
2015-01-14 12:52:48
阅读次数:
211
一、 题目
给定一个单链表,删除倒数第n个节点,返回删除了的链表。
例如: 已知: 1->2->3->4->5, n = 2.
处理后:1->2->3->5.
试着遍历一次完成。
二、 分析
看到这道题我第一感觉就是双指针,因为要删除倒数第n个数,所以两个指针的间距也就是这个n,当右边的指针到达末尾处时,那么左指针的下一个指针就是要删除的节点。其实会有下面...
分类:
其他好文 时间:
2015-01-14 09:51:12
阅读次数:
155
简单题 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 double salary[12];10 double sum = 0;...
分类:
其他好文 时间:
2015-01-13 12:20:05
阅读次数:
154
当css3.0出现以后,着实让我兴奋了好久,因为出现了很多选择器,我们在也不用靠js做复杂判断了。比如:nth-child,很容易就可以判断奇偶对象 “:nth-child(2n)和:nth-child(2n+1)”但是IE对css3的严重不支持,实在让我头疼。虽然现在IE9的发布,但是国人还有很多...
分类:
Web程序 时间:
2015-01-12 12:55:41
阅读次数:
147
找第二大# Write your MySQL query statement belowSELECT MAX(Salary) FROM EmployeeWHERE Salary NOT IN (SELECT MAX(Salary) FROM Employee)
分类:
其他好文 时间:
2015-01-11 20:24:02
阅读次数:
195
Pat1090代码
题目描述:
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.
Starting from one root supp...
分类:
其他好文 时间:
2015-01-10 01:28:52
阅读次数:
212
Elevator
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 47184 Accepted Submission(s): 26027
Problem Description
The highest building ...
分类:
其他好文 时间:
2015-01-09 19:24:57
阅读次数:
204