码迷,mamicode.com
首页 >  
搜索关键字:linked    ( 5490个结果
LeetCode:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your ...
分类:其他好文   时间:2014-06-29 14:39:10    阅读次数:268
Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity./***Definitionforsingly-linkedlist.*structListNode{*in...
分类:其他好文   时间:2014-06-04 21:08:57    阅读次数:381
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-06-04 20:19:49    阅读次数:282
C#数据结构-单链表
理论基础: 链表是用一组任意的存储单元来存储线性表中的数据元素。 如果结点的引用域只存储该结点直接后继结点的存储地址,则该链表叫单链表(Singly Linked List)。单链表由头引用H唯一确定。头引用指向单链表的第一个结点,也就是把单链表第一个结点的地址放在H中。 C#实现: 1接口 引用....
分类:其他好文   时间:2014-05-29 16:36:06    阅读次数:294
LeetCode --- Add Two Numbers
题目链接说来算是个基础题目,可是还是各种CE,各种WA,基础还是不扎实。附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *ne...
分类:其他好文   时间:2014-05-28 23:56:38    阅读次数:382
LeetCodeMerge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 对每一个排序链表都设置一个指针。每次讲指针指向的单元中最小值链接,直到所有指针为空。 public c...
分类:其他好文   时间:2014-05-28 09:59:54    阅读次数:263
49. 3种方法实现复杂链表的复制[clone of complex linked list]
clone of complex linked list.
分类:其他好文   时间:2014-05-26 09:34:02    阅读次数:264
LeetCode:Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem...
分类:其他好文   时间:2014-05-26 09:08:23    阅读次数:262
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 i...
分类:其他好文   时间:2014-05-25 21:36:52    阅读次数:268
Cocos2d-x 3.0 编译 eclipse+Win7+Android 篇
文档 Eclipse --> Windows--> Preferences ... 3. Set up Variables:  1. Path Variable `COCOS2DX`:  * Eclipse->Preferences->General->Workspace->**Linked Resources** * Click **New** button to add a Path...
分类:移动开发   时间:2014-05-24 17:54:57    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!