摘要: 40.数组中只出现一次的数字 一个整型数组里除了两个数字之外,其他的数字都出现了两次。写出这两个只出现了一次的数字。时间复杂度为O(n),空间复杂度为O(1)。 Leetcode 540.Single Element in a Sorted Array You are given a sorted 阅读全文
posted @ 2020-03-06 22:22 whiky 阅读(137) 评论(0) 推荐(0) 编辑
摘要: [剑指Offer]41 和为S的两个数字 VS 和为S的连续正数序列 Leetcode T1 Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specif 阅读全文
posted @ 2020-03-06 12:18 whiky 阅读(111) 评论(0) 推荐(0) 编辑