
规律
景行cmy
这个作者很懒,什么都没留下…
展开
-
leetcode 793. Preimage Size of Factorial Zeroes Function
Letf(x)be the number of zeroes at the end ofx!. (Recall thatx! = 1 * 2 * 3 * ... * x, and by convention,0! = 1.)For example,f(3) = 0because 3! = 6 has no zeroes at the end, whilef(11) = 2bec...原创 2019-08-24 09:48:31 · 113 阅读 · 0 评论 -
leetcode 798. Smallest Rotation with Highest Score
Given an arrayA, we may rotate it by a non-negative integerKso that the array becomesA[K], A[K+1], A{K+2], ... A[A.length - 1], A[0], A[1], ..., A[K-1]. Afterward, any entries that are less than ...原创 2019-08-24 14:37:29 · 206 阅读 · 0 评论 -
leetcode 805. Split Array With Same Average
In a given integer array A, we must move every element of A to either list B or list C. (B and C initially start empty.)Return true if and only if after such a move, it is possible that the average ...原创 2019-08-24 17:16:19 · 165 阅读 · 0 评论 -
leetcode 810. Chalkboard XOR Game
We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take turns erasing exactly one number from the chalkboard, with Alice starting first. If erasing a number ...原创 2019-08-24 20:31:54 · 131 阅读 · 0 评论 -
leetcode 829. Consecutive Numbers Sum
Given a positive integerN, how many ways can we write it as a sum ofconsecutive positive integers?Example 1:Input: 5Output: 2Explanation: 5 = 5 = 2 + 3Example 2:Input: 9Output: 3Explan...原创 2019-08-27 09:19:39 · 216 阅读 · 0 评论 -
leetcode 42 trapping rain water
42.Trapping Rain WaterHard306954FavoriteShareGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rainin...原创 2019-03-26 17:20:54 · 119 阅读 · 0 评论 -
leetcode 992. Subarrays with K Different Integers
Given an arrayAof positive integers, call a (contiguous, not necessarily distinct) subarray ofAgoodif the number of different integers in that subarray is exactlyK.(For example,[1,2,3,1,2]ha...原创 2019-09-02 11:18:52 · 193 阅读 · 0 评论 -
leetcode 996. Number of Squareful Arrays
Given an arrayAof non-negative integers, the array issquarefulif for every pair of adjacent elements, their sum is a perfect square.Return the number of permutations of A that are squareful. Tw...原创 2019-09-02 18:08:36 · 125 阅读 · 0 评论 -
leetcode 964. Least Operators to Express Number
Given a single positive integerx, we will write an expression of the formx (op1) x (op2) x (op3) x ...where each operatorop1,op2, etc. is either addition, subtraction, multiplication, or division...原创 2019-09-06 14:33:02 · 344 阅读 · 0 评论