码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
Leetcode 416. Partition Equal Subset Sum
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
88. Merge Sorted Array
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
119. Pascal's Triangle II
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
LeetCode Maximum XOR of Two Numbers in an Array
原题链接在这里: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
81. Search in Rotated Sorted Array II
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
Delphi中取得汉字的首字母(十分巧妙)
function Tdm.GetHzPy(const AHzStr: string): string;const ChinaCode: array[0..25, 0..1] of Integer = ((1601, 1636), (1637, 1832), (1833, 2077), (2078,  ...
分类:Windows程序   时间:2017-02-01 10:47:48    阅读次数:232
153. Find Minimum in Rotated Sorted Array
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
Codeforce 371A K-Periodic Array(模拟)
题目链接 K-Periodic Array 简单题,直接模拟即可。 ...
分类:其他好文   时间:2017-01-31 20:55:45    阅读次数:190
136. Single Number
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
219. Contains Duplicate II
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!