摘要:
40.数组中只出现一次的数字 一个整型数组里除了两个数字之外,其他的数字都出现了两次。写出这两个只出现了一次的数字。时间复杂度为O(n),空间复杂度为O(1)。 Leetcode 540.Single Element in a Sorted Array You are given a sorted 阅读全文
摘要:
[剑指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 阅读全文
摘要:
108. Convert Sorted Array to Binary Search Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this 阅读全文
摘要:
114 Flatten Binary Tree to Linked List Given a binary tree, flatten it to a linked list in place. 将二叉树展开成链表 [ ] (D:\dataStructure\Leetcode\114.png) 思路 阅读全文