摘要: This link has two nice solutions, one updating from forth to back (posted by tqlong in the post) and the other updating from back to forth (posted by ... 阅读全文
posted @ 2015-08-24 18:27 jianchao-li 阅读(247) 评论(0) 推荐(0)
摘要: There are three methods to solve this problem: bit manipulation, rearrangement of the array, and math tricks.Bit Manipulation1 class Solution {2 publi... 阅读全文
posted @ 2015-08-24 11:32 jianchao-li 阅读(259) 评论(0) 推荐(0)