文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战426:将二叉搜索树转化为排序的双向链表

今天和大家聊的问题叫做 将二叉搜索树转化为排序的双向链表,我们先来看题面:https://leetcode-cn.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/Convert a BST to a sorted circular doubly-linked list in-place. Think of ....

​LeetCode刷题实战426:将二叉搜索树转化为排序的双向链表
文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战369:给单链表加一

今天和大家聊的问题叫做 给单链表加一,我们先来看题面:https://leetcode-cn.com/problems/plus-one-linked-list/Given a non-negative integer represented as non-empty a singly linked list of digits, plus one to the integer.You may ....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战203:移除链表元素

今天和大家聊的问题叫做 移除链表元素,我们先来看题面:https://leetcode-cn.com/problems/remove-linked-list-elements/Remove all elements from a linked list of integers that have value val.题意删除链表中等于给定值 val 的所有节点。示例输入: 1->2->...

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战83: 删除排序链表中的重复元素

今天和大家聊的问题叫做 删除排序链表中的重复元素,我们先来看题面:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/Given a sorted linked list, delete all duplicates such that each element appear only once.题意给定一个排序....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战24:两两交换链表中的节点

今天和大家聊的问题叫做两两交换链表中的节点,我们先来看题面:https://leetcode-cn.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.You may not modify the values in the list's n....

文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战143: 重排链表

今天和大家聊的问题叫做 重排链表,我们先来看题面:https://leetcode-cn.com/problems/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 may not modify the values in the list's ....

文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战141: 环形链表

今天和大家聊的问题叫做 环形链表,我们先来看题面:https://leetcode-cn.com/problems/linked-list-cycle/Given head, the head of a linked list, determine if the linked list has a cycle in it.There is a cycle in a linked list if ....

​LeetCode刷题实战141: 环形链表
文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战138:复制带随机指针的链表

今天和大家聊的问题叫做 复制带随机指针的链表,我们先来看题面:https://leetcode-cn.com/problems/copy-list-with-random-pointer/A linked list is given such that each node contains an additional random pointer which could point to any....

​LeetCode刷题实战138:复制带随机指针的链表
文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战25:K 个一组翻转链表

今天和大家聊的问题叫做K 个一组翻转链表,我们先来看题面:https://leetcode-cn.com/problems/reverse-nodes-in-k-groupGiven a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive ....

文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战23:合并K个升序链表

今天和大家聊的问题叫做合并K个升序链表,我们先来看题面:https://leetcode-cn.com/problems/merge-k-sorted-lists/Given an array of linked-lists lists, each linked list is sorted in ascending order.Merge all the linked-lists into o....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注