摘要: Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Suppose a sort... 阅读全文
posted @ 2015-03-19 13:51 mrpod2g 阅读(98) 评论(0) 推荐(0)
摘要: Given an array of integers, every element appearstwiceexcept for one. Find that single one.public class Solution { public int singleNumber(int[] A)... 阅读全文
posted @ 2015-03-19 13:40 mrpod2g 阅读(114) 评论(0) 推荐(0)