上一页 1 2 3 4 5 6 7 8 ··· 76 下一页
摘要: /*Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the 阅读全文
posted @ 2021-06-18 07:10 Schwifty 阅读(31) 评论(0) 推荐(0)
摘要: We are given an array nums of positive integers, and two positive integers left and right (left <= right). Return the number of (contiguous, non-empty 阅读全文
posted @ 2021-06-18 05:19 Schwifty 阅读(42) 评论(0) 推荐(0)
摘要: Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if i 阅读全文
posted @ 2021-06-17 12:31 Schwifty 阅读(42) 评论(0) 推荐(0)
摘要: Given a sorted integer array arr, two integers k and x, return the k closest integers to x in the array. The result should also be sorted in ascending 阅读全文
posted @ 2021-06-17 11:34 Schwifty 阅读(27) 评论(0) 推荐(0)
摘要: Given an integer array nums and an integer k, return true if it is possible to divide this array into k non-empty subsets whose sums are all equal. Ex 阅读全文
posted @ 2021-06-16 09:12 Schwifty 阅读(52) 评论(0) 推荐(0)
摘要: You are given an integer array matchsticks where matchsticks[i] is the length of the ith matchstick. You want to use all the matchsticks to make one s 阅读全文
posted @ 2021-06-16 09:06 Schwifty 阅读(49) 评论(0) 推荐(0)
摘要: You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerB 阅读全文
posted @ 2021-06-15 06:26 Schwifty 阅读(64) 评论(0) 推荐(0)
摘要: You are given an array of positive integers nums and want to erase a subarray containing unique elements. The score you get by erasing the subarray is 阅读全文
posted @ 2021-05-29 02:59 Schwifty 阅读(38) 评论(0) 推荐(0)
摘要: A decimal number is called deci-binary if each of its digits is either 0 or 1 without any leading zeros. For example, 101 and 1100 are deci-binary, wh 阅读全文
posted @ 2021-05-27 04:19 Schwifty 阅读(37) 评论(0) 推荐(0)
摘要: Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the answer in any order. A word match 阅读全文
posted @ 2021-05-22 08:58 Schwifty 阅读(45) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 76 下一页