码迷,mamicode.com
首页 >  
搜索关键字:linked_list    ( 3784个结果
PAT Advanced 1097 Deduplication on a Linked List (25) [链表]
PAT 甲级 Advanced 1097 Deduplication on a Linked List (25) [链表] ...
分类:其他好文   时间:2020-02-11 23:09:12    阅读次数:148
[LeetCode] 108. Convert Sorted Array to Binary Search Tree
将有序数组转化为二叉搜索树。题目即是题意。只要输出一个有效的BST即可。此题可以跟109题一起做,要求很接近但是做法不太一样。例子, Example: Given the sorted linked list: [-10,-3,0,5,9], One possible answer is: [0,- ...
分类:其他好文   时间:2020-02-11 09:53:31    阅读次数:59
LeetCode19 移除倒数第N个元素
链接 "Remove Nth Node From End of List" 难度 Medium 描述 Given a linked list, remove the _n_ th node from the end of list and return its head. 给定一个链表,要求移除导数 ...
分类:其他好文   时间:2020-02-10 09:48:14    阅读次数:47
ARTS Week 13
Jan 20, 2020 ~ Jan 26, 2020 Algorithm Problem 141 Linked List Cycle (环形链表) "题目链接" 题目描述:给定一个链表,判断链表中是否存在环形。pos 代表链表末尾指向的连接到链表的位置,从0开始。若 pos = 1 则表示链表中没 ...
分类:其他好文   时间:2020-02-09 20:09:57    阅读次数:62
PAT Advanced 1052 Linked List Sorting (25) [链表]
PAT 甲级 Advanced 1052 Linked List Sorting (25) [链表] ...
分类:其他好文   时间:2020-02-09 20:08:48    阅读次数:72
138. Copy List with Random Pointer
Problem : 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 ...
分类:其他好文   时间:2020-02-09 11:54:41    阅读次数:76
leetcode19 Remove Nth Node From End of List
1 """ 2 Given a linked list, remove the n-th node from the end of list and return its head. 3 Example: 4 Given linked list: 1->2->3->4->5, and n = 2. ...
分类:其他好文   时间:2020-02-07 20:26:51    阅读次数:78
leetcode83 Remove Duplicates from Sorted List
1 """ 2 Given a sorted linked list, delete all duplicates such that each element appear only once. 3 Example 1: 4 Input: 1->1->2 5 Output: 1->2 6 Exam ...
分类:其他好文   时间:2020-02-07 19:14:50    阅读次数:70
leetcode24 Swap Nodes in Pairs
1 """ 2 Given a linked list, swap every two adjacent nodes and return its head. 3 You may not modify the values in the list's nodes, only nodes itself ...
分类:其他好文   时间:2020-02-07 18:27:44    阅读次数:58
LeetCode Solution-141
141. Linked List Cycle Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos wh ...
分类:其他好文   时间:2020-02-06 10:30:04    阅读次数:64
3784条   上一页 1 ... 19 20 21 22 23 ... 379 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!