2017年10月24日

Number Complement

摘要: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte 阅读全文

posted @ 2017-10-24 23:56 luckygxf 阅读(128) 评论(0) 推荐(0)

Array Partition I

摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文

posted @ 2017-10-24 23:36 luckygxf 阅读(130) 评论(0) 推荐(0)

导航