05 2024 档案
摘要:You have observations of n + m 6-sided dice rolls with each face numbered from 1 to 6. n of the observations went missing, and you only have the obser
阅读全文
摘要:You are given a 0-indexed integer array nums having length n, an integer indexDifference, and an integer valueDifference. Your task is to find two ind
阅读全文
摘要:You are given a 0-indexed integer array nums and an integer k. A subarray is called equal if all of its elements are equal. Note that the empty subarr
阅读全文
摘要:The XOR total of an array is defined as the bitwise XOR of all its elements, or 0 if the array is empty. For example, the XOR total of the array [2,5,
阅读全文
摘要:There are n projects numbered from 0 to n - 1. You are given an integer array milestones where each milestones[i] denotes the number of milestones the
阅读全文
摘要:You are given an array happiness of length n, and a positive integer k. There are n children standing in a queue, where the ith child has happiness va
阅读全文
摘要:You are given a 0-indexed integer array batteryPercentages having length n, denoting the battery percentages of n 0-indexed devices. Your task is to t
阅读全文
摘要:Alice and Bob want to water n plants in their garden. The plants are arranged in a row and are labeled from 0 to n - 1 from left to right where the it
阅读全文
摘要:You want to water n plants in your garden with a watering can. The plants are arranged in a row and are labeled from 0 to n - 1 from left to right whe
阅读全文
摘要:You are given the head of a linked list. Remove every node which has a node with a greater value anywhere to the right side of it. Return the head of
阅读全文

浙公网安备 33010602011771号