Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-07 14:07:56
阅读次数:
345
Subsets IGiven a set of distinct integers, S,
return all possible subsets.Note:Elements in a subset must be in non-descending
order.The solution set m...
分类:
其他好文 时间:
2014-05-07 11:13:33
阅读次数:
299
#include string num2str( int i){ stringstream ss;
ss<<i; return ss.strs();}
分类:
编程语言 时间:
2014-05-07 02:17:33
阅读次数:
268
#include //* 方法一 time_t tt =
time(NULL);//这句返回的只是一个时间cuo tm* t= localtime(&tt); printf("%d-%02d-%02d
%02d:%02d:%02d\n", t->tm_year + 1900, t->tm_mon.....
分类:
编程语言 时间:
2014-05-07 02:02:51
阅读次数:
540
R-B Tree简介 Red-Black
Tree,是一种特殊的二叉查找树。红黑树的每个节点上都有存储位表示节点的颜色,即红(Red)或黑(Black)。红黑树的特性:(1)每个节点是黑或红。(2)根节点是黑色。(3)每个叶子节点(NIL)是黑色。[注意:这里叶子节点,是指为空(NIL或NULL)....
分类:
其他好文 时间:
2014-05-07 01:53:34
阅读次数:
570
1、异常 例如: def fetcher(obj,index): return obj[index]
def catcher(): ...
分类:
编程语言 时间:
2014-05-07 01:51:04
阅读次数:
460
今天下午做了一个滚动浏览效果,贴在此,积累$(function(){ /* * 滚动浏览 */
$.fn.autoScroll = function(o){ o = $.extend({ speed: 20, step : 1, up : null,
down : null }, o || {})....
分类:
其他好文 时间:
2014-05-07 01:49:02
阅读次数:
234
1.SQL TO String :只返回一个查询结果 例如查询某条记录的总数 rs =
stmt.executeQuery(replacedCommand); if (rs != null && rs.next()) // rs
only contains one row and one colu....
分类:
数据库 时间:
2014-05-07 00:18:30
阅读次数:
600
Merge Two Sorted ListsMerge two sorted linked
lists and return it as a new list. The new list should be made by splicing
together the nodes of the fir...
分类:
其他好文 时间:
2014-05-06 23:54:10
阅读次数:
469
实现一个函数复制一个复杂链表。在复杂链表中,每个结点除了有一个m_pNext指针指向下一个结点外,还有一个m_pSibling指向链表中的任意结点或者NULL。
分类:
其他好文 时间:
2014-05-06 23:48:50
阅读次数:
461