416. Partition Equal Subset Sum 416. Partition Equal Subset Sum Given a non-empty array containing only positive integers, find if the array can be pa ...
分类:
其他好文 时间:
2017-02-01 14:57:14
阅读次数:
218
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha ...
分类:
其他好文 时间:
2017-02-01 12:36:36
阅读次数:
193
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm to us ...
分类:
其他好文 时间:
2017-02-01 11:48:03
阅读次数:
162
原题链接在这里:https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/ 题目: Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ...
分类:
其他好文 时间:
2017-02-01 10:52:14
阅读次数:
346
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Suppose an arra ...
分类:
其他好文 时间:
2017-02-01 10:48:31
阅读次数:
169
function Tdm.GetHzPy(const AHzStr: string): string;const ChinaCode: array[0..25, 0..1] of Integer = ((1601, 1636), (1637, 1832), (1833, 2077), (2078, ...
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find ...
分类:
其他好文 时间:
2017-02-01 10:39:26
阅读次数:
173
题目链接 K-Periodic Array 简单题,直接模拟即可。 ...
分类:
其他好文 时间:
2017-01-31 20:55:45
阅读次数:
190
Given an array of integers, every element appears twice except for one. Find that single one. 一个int型数组,除了其中一个元素以外,其他的均出现两次。 My Solution: Others' Solut ...
分类:
其他好文 时间:
2017-01-31 15:11:11
阅读次数:
195
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j]and the a ...
分类:
其他好文 时间:
2017-01-31 13:43:57
阅读次数:
204