摘要: 来源:https://discuss.leetcode.com/topic/50315/a-summary-how-to-use-bit-manipulation-to-solve-problems-easily-and-efficiently/2 WIKI Bit manipulation is 阅读全文
posted @ 2017-04-02 22:53 Tsunami_lj 阅读(199) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? 先贴上自己丑陋的代码:主 阅读全文
posted @ 2017-04-02 18:01 Tsunami_lj 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The longes 阅读全文
posted @ 2017-04-02 11:48 Tsunami_lj 阅读(93) 评论(0) 推荐(0) 编辑