05 2023 档案
摘要:Find Numbers with Even Number of Digits Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: n
阅读全文
摘要:Distribute Candies to People We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the
阅读全文
摘要:Partition Array Into Three Parts With Equal Sum Given an array of integers arr, return true if we can partition the array into three non-empty parts w
阅读全文
摘要:Number of Equivalent Domino Pairs Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a == c a
阅读全文
摘要:Maximum Score After Splitting a String Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty subs
阅读全文
摘要:Check If it is a Straight Line You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check i
阅读全文
摘要:Minimum Cost to Move Chips to The Same Position We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to t
阅读全文
摘要:Unique Number of Occurences Given an array of integers arr, return true if the number of occurrences of each value in the array is unique or false oth
阅读全文
摘要:Find Words That Can Be Formed by Characters You are given an array of strings words and a string chars. A string is good if it can be formed by charac
阅读全文
摘要:Sort Array By Parity II Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whe
阅读全文
摘要:Sort Array By Parity Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return an
阅读全文
摘要:Distance Between Bus Stops A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops
阅读全文