摘要: 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 阅读全文
posted @ 2019-05-03 15:28 Veritas_des_Liberty 阅读(227) 评论(0) 推荐(0)
摘要: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Approach #1: Math. [Jav 阅读全文
posted @ 2019-05-03 12:37 Veritas_des_Liberty 阅读(298) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2019-05-03 11:32 Veritas_des_Liberty 阅读(190) 评论(0) 推荐(0)