题目
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 ...
分类:
其他好文 时间:
2014-12-05 17:29:19
阅读次数:
124
DECLARE @Start INT = 1; --开始DECLARE @Digits INT = 6; --后几位DECLARE @prefix VARCHAR(50) = '0990';--前缀DECLARE @end INT=500000; --结束SET @Start = 1WHILE @S...
分类:
其他好文 时间:
2014-12-05 15:27:55
阅读次数:
175
#import @interface ZSDProgressView : UIView{ UIView *progressView;//进度view}//进度值@property(nonatomic,assign)float progress;@end#define UIColorFromRG...
分类:
移动开发 时间:
2014-12-05 12:35:32
阅读次数:
230
1. CASE WHEN 表达式有两种形式 --简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASE WHEN sex = '1' THEN '男' WHEN sex = '2' THE...
分类:
数据库 时间:
2014-12-05 12:30:34
阅读次数:
279
#coding:utf-8rfile = open('test.txt','r')str=[]for x in rfile: str = x.split(',')for x in str: print (chr(int(x)),end='')rfile.close()
分类:
编程语言 时间:
2014-12-05 12:28:12
阅读次数:
131
一、类扩展(class extension,匿名分类) 1.格式 @Interface 类名() { //成员变量... } //方法声明... @end 2.作用 1>写在.m文件中 2>一般用来扩充私有成员变量、@property属性、方法等二、随机数生成 1.arc4random() 会...
分类:
其他好文 时间:
2014-12-05 10:31:53
阅读次数:
150
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 re...
分类:
其他好文 时间:
2014-12-05 07:05:34
阅读次数:
191
就是托控件,没啥好说的。。。Response :响应 从服务端--客户端 Write("字符串"):向客户端页面输出一段文字 Redirect("URL"):重定向 End():结束向客户端的输出Request:请求 从客户端--服务端 Request["名"]:获取客户端用post或get方式传递...
分类:
其他好文 时间:
2014-12-05 00:41:00
阅读次数:
150
问题描述:
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
基本思想:
二分法构建二差排序树。
代码:
TreeNode *subsortedArrayToBST(vector & num,int begin, int end) /...
分类:
其他好文 时间:
2014-12-04 23:18:01
阅读次数:
189
Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sexWHEN '1' THEN '男'WHEN '2' THEN '女'ELSE '其他' END--Case搜索函数CASE WHEN sex = '1' THEN '男'WHEN sex = '2' THE...
分类:
数据库 时间:
2014-12-04 23:12:42
阅读次数:
252