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刷题实战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 ....
LeetCode刷题实战237:删除链表中的节点
今天和大家聊的问题叫做 删除链表中的节点,我们先来看题面:https://leetcode-cn.com/problems/delete-node-in-a-linked-list/Write a function to delete a node in a singly-linked list. You will not be given access to the head of the l....
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->...
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 ....
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刷题实战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刷题实战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.题意给定一个排序....
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 ....
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....
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。
数据库
分享数据库前沿,解构实战干货,推动数据库技术变革
+关注