2017年12月16日

add digits

摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文

posted @ 2017-12-16 21:15 夜的第八章 阅读(124) 评论(0) 推荐(0) 编辑

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). N 阅读全文

posted @ 2017-12-16 20:16 夜的第八章 阅读(141) 评论(0) 推荐(0) 编辑

导航