![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode Python3题解
KRummy
这个作者很懒,什么都没留下…
展开
-
LeetCode 319: Bulb Switcher (Python3)
题目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 ...原创 2018-06-21 22:41:25 · 309 阅读 · 0 评论 -
LeetCode 396: Rotate Function (Python3)
题目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 on A as follow: F(k)=...原创 2018-06-21 22:51:42 · 283 阅读 · 0 评论