摘要: Given an array of integers, every element appears three times except for one. Find that single one. Note: We generalize this problem to: Given an arra 阅读全文
posted @ 2014-12-23 06:44 LiBlog 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears twice except for one. Find that single one.Analysis:Use XOR operation.Solution: 1 public class Solut... 阅读全文
posted @ 2014-12-23 04:46 LiBlog 阅读(113) 评论(0) 推荐(0) 编辑
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost 阅读全文
posted @ 2014-12-23 00:36 LiBlog 阅读(133) 评论(0) 推荐(0) 编辑