码迷,mamicode.com
首页 >  
搜索关键字:appears    ( 674个结果
Single Number II
题目: Given an array of integers, every element appears three times except for one. Find that single one. Your algorithm should have a linear runtime co ...
分类:其他好文   时间:2016-09-20 11:50:06    阅读次数:153
217. Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:其他好文   时间:2016-09-14 09:30:54    阅读次数:117
169. Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:其他好文   时间:2016-09-10 10:19:34    阅读次数:127
LeetCode-Longest Substring with At Least K Repeating Characters
Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than ...
分类:其他好文   时间:2016-09-09 15:10:28    阅读次数:101
136. Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime comple ...
分类:其他好文   时间:2016-09-09 15:03:24    阅读次数:138
136.LeetCode Single Number
Given an array of integers, every element appears twice except for one. Find that single one. 这道题看似很简单,但是需要线性时间和不消耗额外空间,这里需要用到c++的“亦或”操作,因为 相同数数字 ^ 操作 ...
分类:其他好文   时间:2016-09-08 23:22:22    阅读次数:211
[LeetCode] Longest Substring with At Least K Repeating Characters 至少有K个重复字符的最长子字符串
Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than ...
分类:其他好文   时间:2016-09-08 12:43:19    阅读次数:124
Leetcode 169 Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:其他好文   时间:2016-09-01 00:13:42    阅读次数:106
【LeetCode】136. Single Number 解题小结
题目: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime com ...
分类:其他好文   时间:2016-08-31 07:08:42    阅读次数:134
【LeetCode】217. Contains Duplicate 解题小结
题目: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the ...
分类:其他好文   时间:2016-08-27 11:11:23    阅读次数:110
674条   上一页 1 ... 27 28 29 30 31 ... 68 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!