06 2025 档案

摘要:You are given a 0-indexed integer array nums and two integers key and k. A k-distant index is an index i of nums for which there exists at least one i 阅读全文
posted @ 2025-06-24 07:48 CNoodle 阅读(51) 评论(0) 推荐(0)
摘要:A string s can be partitioned into groups of size k using the following procedure: The first group consists of the first k characters of the string, t 阅读全文
posted @ 2025-06-22 06:48 CNoodle 阅读(56) 评论(0) 推荐(0)
摘要:You are given an integer array nums and an integer k. You may partition nums into one or more subsequences such that each element in nums appears in e 阅读全文
posted @ 2025-06-19 04:26 CNoodle 阅读(67) 评论(0) 推荐(0)
摘要:You are given an integer num. You know that Bob will sneakily remap one of the 10 possible digits (0 to 9) to another digit. Return the difference bet 阅读全文
posted @ 2025-06-14 08:12 CNoodle 阅读(50) 评论(0) 推荐(0)
摘要:Given an integer n, return all the numbers in the range [1, n] sorted in lexicographical order. You must write an algorithm that runs in O(n) time and 阅读全文
posted @ 2025-06-10 10:54 CNoodle 阅读(27) 评论(0) 推荐(0)
摘要:You are given a string s and a robot that currently holds an empty string t. Apply one of the following operations until s and t are both empty: Remov 阅读全文
posted @ 2025-06-06 03:46 CNoodle 阅读(38) 评论(0) 推荐(0)
摘要:You are given a string word, and an integer numFriends. Alice is organizing a game for her numFriends friends. There are multiple rounds in the game, 阅读全文
posted @ 2025-06-04 07:45 CNoodle 阅读(125) 评论(0) 推荐(0)