1链表逆序http://blog.csdn.net/niuer09/article/details/5961004typedef struct tagListNode{ int data; struct tagListNode* next;}ListNode, *List;List Re...
分类:
其他好文 时间:
2014-07-19 20:28:12
阅读次数:
188
一个小练习可以通过 BufferedImage next() 返回一个内存图片也可以通过String void next(OutputStream out) 写到一个输出流中,并返回验证码的值jar包下载:http://files.cnblogs.com/mycome/mycome-validate...
分类:
Web程序 时间:
2014-07-19 20:12:36
阅读次数:
274
一、time() -- 返回当前的 Unix 时间戳 $nextWeek = time() + (7 * 24 * 60 * 60); echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";二、mktime(时/分/秒/月/天/年) -- 取得一个日期...
分类:
Web程序 时间:
2014-07-19 20:08:40
阅读次数:
277
1.指针的联动
通过两个指针分别指向前驱和后继结点,并在单向链表上进行移动,当指针指向待处理的结点时,该结点的前驱也有指针指向。
2.设有一个无序单向链表,且数据域的值均不相同,使指针pmin指向最小值结点,并使指针prem指向最小值结点的前驱结点:
代码片段:
for(p = head; p; q = p, p = p->next)
{
if(pmin->data > p->...
分类:
其他好文 时间:
2014-07-18 21:26:41
阅读次数:
231
刚才写了k个,顺手写个2个的,在链表的归并排序中很有用,效率非常好 1 /** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * int val; 5 * ListNode next;...
分类:
其他好文 时间:
2014-07-16 17:42:41
阅读次数:
275
题目分析见这里
class Solution:
# @param head, a ListNode
# @return a list node
def detectCycle(self, head):
if None == head or None == head.next:
return None
pfast = ...
分类:
编程语言 时间:
2014-07-16 17:18:53
阅读次数:
248
如果需要同步远程仓库的分支,或者说是远程仓库有新的分支了,你需要查看,可以使用fetch来获取远程仓库的更新信息。1、右键项目text->Team->Remote->Fetch From...2、上图中默认配置不变,Next>3、上图中是默认获取全部分支的更新情况,如只需获取指定分支的更新情况,按下...
分类:
其他好文 时间:
2014-07-16 13:39:51
阅读次数:
215
#include #include using namespace std;struct Tire{ int num; Tire* next[26]; Tire() { num=0; int i; for(i=0;inext[t]==...
分类:
其他好文 时间:
2014-07-16 11:59:07
阅读次数:
245
[LeetCode]Populating Next Right Pointers in Each Node...
分类:
其他好文 时间:
2014-07-16 11:29:23
阅读次数:
143
class Solution:
# @param head, a ListNode
# @return a boolean
def hasCycle(self, head):
if None == head or None == head.next:
return False
pfast = head
...
分类:
编程语言 时间:
2014-07-16 09:50:21
阅读次数:
271