leetcode
Mr_Loneliness
这个作者很懒,什么都没留下…
展开
-
717. 1-bit and 2-bit Characters
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). Now given a string represented by several bits. Re...原创 2018-09-05 16:58:33 · 122 阅读 · 0 评论 -
258. Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2 Since 2 ...原创 2018-09-06 15:27:57 · 135 阅读 · 0 评论