摘要: #268. Missing Number Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example 阅读全文
posted @ 2016-12-16 16:29 冯兴伟 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 题解:暴力做,注意边界: 阅读全文
posted @ 2016-12-16 02:16 冯兴伟 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #190. Reverse Bits Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 000000101001010000011 阅读全文
posted @ 2016-12-16 01:38 冯兴伟 阅读(229) 评论(0) 推荐(0) 编辑