码迷,mamicode.com
首页 >  
搜索关键字:linked    ( 5490个结果
redis的五种数据结构原理分析
redis的五种数据结构原理分析 本章主要内容 简单介绍redis redis中的五种数据结构分析 应用场景分析 总结 关于Redis redis是一个开源的使用C语言编写的一个kv存储系统,是一个速度非常快的非关系远程内存数据库。它支持包括String、List、Set、Zset、hash五种数据 ...
分类:其他好文   时间:2020-07-11 13:04:58    阅读次数:70
[LeetCode] 430. Flatten a Multilevel Doubly Linked List
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:其他好文   时间:2020-07-11 10:04:24    阅读次数:84
0061. Rotate List (M)
Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = ...
分类:其他好文   时间:2020-07-11 09:40:09    阅读次数:39
0430. Flatten a Multilevel Doubly Linked List (M)
Flatten a Multilevel Doubly Linked List (M) 题目 You are given a doubly linked list which in addition to the next and previous pointers, it could have a ...
分类:其他好文   时间:2020-07-11 09:25:02    阅读次数:50
430. Flatten a Multilevel Doubly Linked List
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:其他好文   时间:2020-07-11 09:24:32    阅读次数:64
LeetCode160
题目链接 https://leetcode-cn.com/problems/intersection-of-two-linked-lists/ 初次读题 初次读题可知 两个指针相同即需要求得的结果 链表长度可能不同 两个链表可能没有交叉点,此时返回NULL 不可修改链表结构 链表中无循环 我第一次读 ...
分类:其他好文   时间:2020-07-10 23:51:38    阅读次数:63
数据结构双向链表 DoublyLinkedList
package datastructures.linked; import java.util.Iterator; /** * @author warriorg */ public class DoublyLinkedList<T> implements Iterable<T> { private ...
分类:其他好文   时间:2020-07-10 19:19:46    阅读次数:52
83. 删除排序链表中的重复元素
给定一个排序链表,删除所有重复的元素,使得每个元素只出现一次。 示例 1: 输入: 1->1->2输出: 1->2示例 2: 输入: 1->1->2->3->3输出: 1->2->3 我写的错误代码: /** * Definition for singly-linked list. * struct ...
分类:编程语言   时间:2020-07-10 09:32:28    阅读次数:111
LeetCode 面试题02.02. 返回倒数第k个节点
思路描述:采用双指针的思想,让head指针先行移动k个位置,然后head,h同步移动,当head指针移动到链表尾,h指针所指即为倒数第k个节点 LeetCode 代码如下: /** * Definition for singly-linked list. * struct ListNode { * ...
分类:其他好文   时间:2020-07-09 19:06:25    阅读次数:53
【LeetCode】234. 回文链表
【题目描述】 请判断一个链表是否为回文链表。 示例 1: 输入: 1->2输出: false示例 2: 输入: 1->2->2->1输出: true进阶:你能否用 O(n) 时间复杂度和 O(1) 空间复杂度解决此题? 来源:力扣(LeetCode)链接:https://leetcode-cn.co ...
分类:其他好文   时间:2020-07-09 16:44:40    阅读次数:66
5490条   上一页 1 ... 11 12 13 14 15 ... 549 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!