Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2015-01-09 09:17:50
阅读次数:
165
这是在看geeksforgeeks时看到的一道题,挺不错的,题目是
Given a number system with only 3 and 4. Find the nth number in the number system.
First few numbers in the number system are: 3, 4, 33, 34, 43, 44, 333, 334, 343,...
分类:
其他好文 时间:
2015-01-04 23:06:09
阅读次数:
167
#include#include#include#includevoid main(){ char username[10], password[10], server[10]; char name[11], title[10]; float salary; printf("input na...
分类:
数据库 时间:
2015-01-04 18:38:23
阅读次数:
298
https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/http://fisherlei.blogspot.com/2012/12/leetcode-remove-nth-node-from-end-of.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*nex..
分类:
其他好文 时间:
2015-01-02 16:12:53
阅读次数:
132
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2015-01-02 09:47:12
阅读次数:
112
MySQL decimal、numeric数据类型
DECIMAL(M, D)
例 如:salary DECIMAL(5,2)
在这个例子中,5 (精度(precision)) 代表重要的十进制数字的数目,2 (数据范围(scale)) 代表在小数点后的数字位数。在这种情况下,因此,salary 列可以存储的值范围是从 -999.99 到 999.99。(即M代表总位数,D代表...
分类:
数据库 时间:
2014-12-31 14:35:06
阅读次数:
199
题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After...
分类:
编程语言 时间:
2014-12-26 16:15:23
阅读次数:
221
在一个7x7的表格当中nth-child(1); td.parents("table").find("tr :nth-child(1)").css("background-color", "blue");得到eq(1);td.parents("table").find("tr :eq(1)").cs...
分类:
Web程序 时间:
2014-12-25 17:40:33
阅读次数:
168
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2014-12-24 18:05:07
阅读次数:
152
1,首先,介绍一下to_char函数
TO_CHAR 是把日期或数字转换为字符串,不能指定字符串长度。
使用TO_CHAR函数处理日期:
TO_CHAR(number, '格式') 例如:TO_CHAR(salary,’$99,999.99’)
使用TO_CHAR函数处理日期:
TO_CHAR(date,’格式’); TO_CHAR(newdate,’yyyy-mm-dd’) --...
分类:
数据库 时间:
2014-12-24 10:02:42
阅读次数:
187