![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论
Frontier_Setter
这个作者很懒,什么都没留下…
展开
-
[LeetCode] (medium) 279. Perfect Squares
https://leetcode.com/problems/perfect-squares/ Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12...原创 2019-02-17 22:57:04 · 124 阅读 · 0 评论 -
[LeetCode] (medium) 365. Water and Jug Problem
https://leetcode.com/problems/water-and-jug-problem/ You are given two jugs with capacitiesxandylitres. There is an infinite amount of water supply available. You need to determine whether it is ...原创 2019-04-05 14:27:04 · 99 阅读 · 0 评论 -
[LeetCode] (medium) 319. Bulb Switcher
https://leetcode.com/problems/bulb-switcher/ There arenbulbs 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 thi...转载 2019-04-01 23:47:21 · 122 阅读 · 0 评论 -
[LeetCode] (medium) 398. Random Pick Index
https://leetcode.com/problems/random-pick-index/ Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number ...翻译 2019-04-26 19:31:00 · 127 阅读 · 0 评论 -
[LeetCode] (medium) 523. Continuous Subarray Sum
https://leetcode.com/problems/continuous-subarray-sum/ Given a list ofnon-negativenumbers and a targetintegerk, write a function to check if the array has a continuous subarray of size at least ...原创 2019-05-19 22:53:56 · 163 阅读 · 0 评论