码迷,mamicode.com
首页 >  
搜索关键字:__next__    ( 15001个结果
Linked List Cycle [leetcode]
#include #include #include using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: bool hasCycle(ListNod...
分类:其他好文   时间:2014-08-31 23:04:12    阅读次数:287
oracle表空间基本命令,修改数据表结构基本命令
表空间基本命令 --创建表空间   初始化大小10M  自动增长5M  最大50M create tablespace duan datafile 'F:\oracle\product\10.2.0\oradata\orcl\duan.dbf' size 10M  autoextend on next 5M maxsize 50M; --查询表空间的地址和空间名称 select fi...
分类:数据库   时间:2014-08-31 21:33:01    阅读次数:599
SVN创建Tags
右键trunk,选择分支/标记... 资源库,到URL:要创建Tag的位置 Next Next Finish
分类:其他好文   时间:2014-08-31 21:23:01    阅读次数:199
HDU 1867 A + B for you again KMP题解
本题又是一个典型的KMP应用。 求两个字符串相加的结果,相加的规律是一个字符串的后缀和另一个字符串的前缀相同,就可以合并这个部分。 不过本题的题意不是很清晰,因为没有太明确指出这两个字符串的出现顺序是无关的,只是需要输出合并后长度最短的结果,如果合并后长度一样,那么就按照字典顺序,输出字典顺序在前的字符串。 思路: 1 使用kmp在s2查找s1,那么最终结束的时候next table的值就...
分类:其他好文   时间:2014-08-31 17:18:41    阅读次数:140
LeetCode——Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possible...
分类:其他好文   时间:2014-08-30 20:30:10    阅读次数:254
HDU 2815
特判B不能大于等于C高次同余方程#include #include #include #include #include using namespace std;const int Maxn=65535;struct hash{ int a,b,next;}Hash[Maxn*2];int flag...
分类:其他好文   时间:2014-08-30 16:16:29    阅读次数:212
POJ 3243
Babystep算法。具体为什么,我也不太明白,好像资料不多。#include #include #include #include #include using namespace std;const int Maxn=65535;struct hash{ int a,b,next;}Hash[M...
分类:其他好文   时间:2014-08-30 15:02:19    阅读次数:183
【LeetCode】Insertion Sort List
Sort a linked list using insertion sort. 【题意】 用插入排序对一个链表进行排序。 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { ...
分类:其他好文   时间:2014-08-29 21:26:48    阅读次数:233
Remove Nth Node From End of List
# Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Noneclass Solution: # @return ...
分类:其他好文   时间:2014-08-29 19:40:58    阅读次数:164
orcal中创建和删除表空间和用户
1.创建表空间create tablespace NW_DATAlogging datafile 'F:\oracle\product\10.2.0\oradata\nwdb\NW_DATA.dbf' size 64m autoextend on next 64m maxsize 20480m e....
分类:其他好文   时间:2014-08-29 17:48:08    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!