math
Yingying_code
这个作者很懒,什么都没留下…
展开
-
396. Rotate Function*
Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a "rotation function" F onA as follow:原创 2017-01-16 22:12:27 · 207 阅读 · 0 评论 -
462. Minimum Moves to Equal Array Elements II**
Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected element by 1 or decrementing a selected element by原创 2017-01-19 10:38:30 · 218 阅读 · 0 评论 -
318. Maximum Product of Word Lengths**
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case le原创 2017-01-19 21:09:18 · 284 阅读 · 0 评论 -
319. Bulb Switcher**
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off原创 2017-01-19 21:32:30 · 176 阅读 · 0 评论