码迷,mamicode.com
首页 >  
搜索关键字:linked    ( 5490个结果
SqlServer Link 链接服务器的使用
1 --创建linked 2 exec sp_addlinkedserver 'a','','SQLNCLI','your ipaddress' 3 4 --登陆linked 5 exec sp_addlinkedsrvlogin 'a','false',null,'sa',123456' ...
分类:数据库   时间:2014-07-03 10:02:40    阅读次数:225
[leetcode] Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
分类:其他好文   时间:2014-07-02 10:01:21    阅读次数:173
leetcode - Remove Nth Node From End of List
题目:Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1.....
分类:其他好文   时间:2014-07-01 20:34:50    阅读次数:232
Linked List Cycle
题目 Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 方法 /** * Definition for singly-linked list. * class ListNode { ...
分类:其他好文   时间:2014-07-01 11:31:40    阅读次数:178
Linked List Cycle II
题目 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space? 方法 public ListNode de...
分类:其他好文   时间:2014-07-01 11:30:58    阅读次数:200
[Leetcode]Add Two Numbers
题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it a...
分类:其他好文   时间:2014-07-01 09:11:07    阅读次数:206
Reorder List
题目 Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, re...
分类:其他好文   时间:2014-07-01 08:39:24    阅读次数:181
Flatten Binary Tree to Linked List
题目 Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look lik...
分类:其他好文   时间:2014-07-01 08:03:10    阅读次数:127
Copy List with Random Pointer
题目 A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. 方法 publi...
分类:其他好文   时间:2014-07-01 07:49:33    阅读次数:186
zoj2770 Burn the Linked Camp --- 差分约束
有n个营地,每个营地至多容纳Ci人,给出m个条件:第i到第j个营地之间至少有k人。 问n个营地总共至少有多少人。 此题显然差分约束,要求最小值,则建立x-y>=z方程组,建图求最长路。 用d[i]表示[1,i]个帐篷中一共多少人,根据题意可得到不等关系: 1、0 2、d[j]-d[i]>=k 此外,我们添加0为附加结点,则0到其他点也要建边。 再求解0为源点的最长路即可。 ...
分类:其他好文   时间:2014-06-30 19:41:42    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!