leetcode.cn 2025-02-27
🔴2296.design-a-text-editor
🏷️ Tags
#stack #design #linked_list #string #doubly_linked_list #simulation
🔴2296.design-a-text-editor
🏷️ Tags
#stack #design #linked_list #string #doubly_linked_list #simulation
Telegraph
design-a-text-editor
请你设计一个带光标的文本编辑器,它可以实现以下功能:
leetcode.cn 2025-07-14
🟢1290.convert-binary-number-in-a-linked-list-to-integer
🏷️ Tags
#linked_list #math
🟢1290.convert-binary-number-in-a-linked-list-to-integer
🏷️ Tags
#linked_list #math
Telegraph
convert-binary-number-in-a-linked-list-to-integer
给你一个单链表的引用结点 head。链表中每个结点的值不是 0 就是 1。已知此链表是一个整数数字的二进制表示形式。 请你返回该链表所表示数字的 十进制值 。 示例 1: 输入:head = [1,0,1] 输出:5 解释:二进制数 (101) 转化为十进制数 (5) 示例 2: 输入:head = [0] 输出:0 示例 3: 输入:head = [1] 输出:1 示例 4: 输入:head = [1,0,0,1,0,0,1,1,1,0,0,0,0,0,0] 输出:18880 示例 5: 输入:head…
leetcode.com 2025-07-14
🟢1290.convert-binary-number-in-a-linked-list-to-integer
🏷️ Tags
#linked_list #math
🟢1290.convert-binary-number-in-a-linked-list-to-integer
🏷️ Tags
#linked_list #math
Telegraph
convert-binary-number-in-a-linked-list-to-integer
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number. Return the decimal value of the number in the linked list. The most significant…
leetcode.cn 2025-11-01
🟡3217.delete-nodes-from-linked-list-present-in-array
🏷️ Tags
#array #hash_table #linked_list
🟡3217.delete-nodes-from-linked-list-present-in-array
🏷️ Tags
#array #hash_table #linked_list
Telegraph
delete-nodes-from-linked-list-present-in-array
给你一个整数数组 nums 和一个链表的头节点 head。从链表中移除所有存在于 nums 中的节点后,返回修改后的链表的头节点。 示例 1: 输入: nums = [1,2,3], head = [1,2,3,4,5] 输出: [4,5] 解释: 移除数值为 1, 2 和 3 的节点。 示例 2: 输入: nums = [1], head = [1,2,1,2,1,2] 输出: [2,2,2] 解释: 移除数值为 1 的节点。 示例 3: 输入: nums = [5], head = [1,2,3…
leetcode.com 2025-11-01
🟡3217.delete-nodes-from-linked-list-present-in-array
🏷️ Tags
#array #hash_table #linked_list
🟡3217.delete-nodes-from-linked-list-present-in-array
🏷️ Tags
#array #hash_table #linked_list
Telegraph
delete-nodes-from-linked-list-present-in-array
You are given an array of integers nums and the head of a linked list. Return the head of the modified linked list after removing all nodes from the linked list that have a value that exists in nums. Example 1: Input: nums = [1,2,3], head = [1,2,3,4,5]…