03 2025 档案
摘要:You are given a 0-indexed integer array candies. Each element in the array denotes a pile of candies of size candies[i]. You can divide each pile into
阅读全文
摘要:You are given a binary array nums. We call a subarray alternating if no two adjacent elements in the subarray have the same value. Return the number o
阅读全文
摘要:There is a circle of red and blue tiles. You are given an array of integers colors and an integer k. The color of tile i is represented by colors[i]:
阅读全文
摘要:The k-beauty of an integer num is defined as the number of substrings of num when it is read as a string that meet the following conditions: It has a
阅读全文
摘要:You are given a 0-indexed integer array nums. In one operation, you can: Choose two different indices i and j such that 0 <= i, j < nums.length. Choos
阅读全文