摘要:
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 阅读全文
摘要:
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文
摘要:
Paint Fence There is a fence with n posts, each post can be painted with one of the k colors.You have to paint all the posts such that no more than tw 阅读全文