码迷,mamicode.com
首页 >  
搜索关键字:return null    ( 92144个结果
Remove Duplicates from Sorted Array
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
Leetcode | Subsets I & II
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
C++ 数字转字符串
#include string num2str( int i){ stringstream ss; ss<<i; return ss.strs();}
分类:编程语言   时间:2014-05-07 02:17:33    阅读次数:268
C++ 取得系统当前时间
#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
python异常介绍
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
几种通过JDBC操作数据库的方法,以及返回数据的处理
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 Lists
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!