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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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,
阅读全文

浙公网安备 33010602011771号