摘要: 题目: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The len 阅读全文
posted @ 2017-03-29 11:09 panini 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: 阅读全文
posted @ 2017-03-29 06:18 panini 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目: Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. Now, you are giv 阅读全文
posted @ 2017-03-29 02:07 panini 阅读(284) 评论(0) 推荐(0) 编辑