摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文