leetcode.cn 2024-01-03
🟡2487.remove-nodes-from-linked-list
🏷️ Tags
#stack #recursion #linked_list #monotonic_stack
🟡2487.remove-nodes-from-linked-list
🏷️ Tags
#stack #recursion #linked_list #monotonic_stack
Telegraph
remove-nodes-from-linked-list
给你一个链表的头节点 head 。 移除每个右侧有一个更大数值的节点。 返回修改后链表的头节点 head 。 示例 1: 输入:head = [5,2,13,3,8] 输出:[13,8] 解释:需要移除的节点是 5 ,2 和 3 。 - 节点 13 在节点 5 右侧。 - 节点 13 在节点 2 右侧。 - 节点 8 在节点 3 右侧。 示例 2: 输入:head = [1,1,1,1] 输出:[1,1,1,1] 解释:每个节点的值都是 1 ,所以没有需要移除的节点。 提示:
leetcode.cn 2025-07-03
🟢3304.find-the-k-th-character-in-string-game-i
🏷️ Tags
#bit_manipulation #recursion #math #simulation
🟢3304.find-the-k-th-character-in-string-game-i
🏷️ Tags
#bit_manipulation #recursion #math #simulation
Telegraph
find-the-k-th-character-in-string-game-i
Alice 和 Bob 正在玩一个游戏。最初,Alice 有一个字符串 word = "a"。 给定一个正整数 k。 现在 Bob 会要求 Alice 执行以下操作 无限次 :
leetcode.com 2025-07-03
🟢3304.find-the-k-th-character-in-string-game-i
🏷️ Tags
#bit_manipulation #recursion #math #simulation
🟢3304.find-the-k-th-character-in-string-game-i
🏷️ Tags
#bit_manipulation #recursion #math #simulation
Telegraph
find-the-k-th-character-in-string-game-i
Alice and Bob are playing a game. Initially, Alice has a string word = "a". You are given a positive integer k. Now Bob will ask Alice to perform the following operation forever:
leetcode.cn 2025-07-04
🔴3307.find-the-k-th-character-in-string-game-ii
🏷️ Tags
#bit_manipulation #recursion #math
🔴3307.find-the-k-th-character-in-string-game-ii
🏷️ Tags
#bit_manipulation #recursion #math
Telegraph
find-the-k-th-character-in-string-game-ii
Alice 和 Bob 正在玩一个游戏。最初,Alice 有一个字符串 word = "a"。 给定一个正整数 k 和一个整数数组 operations,其中 operations[i] 表示第 i 次操作的类型。
leetcode.com 2025-07-04
🔴3307.find-the-k-th-character-in-string-game-ii
🏷️ Tags
#bit_manipulation #recursion #math
🔴3307.find-the-k-th-character-in-string-game-ii
🏷️ Tags
#bit_manipulation #recursion #math
Telegraph
find-the-k-th-character-in-string-game-ii
Alice and Bob are playing a game. Initially, Alice has a string word = "a". You are given a positive integer k. You are also given an integer array operations, where operations[i] represents the type of the ith operation. Now Bob will ask Alice to perform…