摘要: [抄题]: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such a 阅读全文
posted @ 2018-05-04 21:08 苗妙苗 阅读(152) 评论(0) 推荐(0)
摘要: [抄题]: Reverse bits of a given 32 bits unsigned integer. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [一句话思路]: 32 阅读全文
posted @ 2018-05-04 11:38 苗妙苗 阅读(164) 评论(0) 推荐(0)
摘要: [抄题]: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 阅读全文
posted @ 2018-05-04 11:14 苗妙苗 阅读(238) 评论(0) 推荐(0)