码迷,mamicode.com
首页 >  
搜索关键字:appear    ( 1294个结果
LeetCode: SingleNumIII
题目链接:https://leetcode.com/problems/single-number-iii/ 题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the...
分类:编程语言   时间:2015-08-25 21:34:38    阅读次数:145
LeetCode(2) Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array 题目 考察数组 描述 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo...
分类:其他好文   时间:2015-08-25 16:53:27    阅读次数:159
[LeetCode] Palindrome Permutation
Just check there are no more than 2 characters that appear an odd number of times in the string.My C++ code using an array as a hash map is as follows...
分类:其他好文   时间:2015-08-21 19:21:54    阅读次数:439
leetcode: Excel Sheet Column Number
Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... ...
分类:其他好文   时间:2015-08-21 17:14:13    阅读次数:112
LeetCode(80)Remove Duplicates from Sorted List
题目Given a sorted linked list, delete all duplicates such that each element appear only once.For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3.分析删除链表中重复元素结点。 该题目本质很简单,只需一次遍...
分类:其他好文   时间:2015-08-20 13:09:25    阅读次数:144
[LeetCode] Majority Element II
Given an integer array of sizen, find all elements that appear more than? n/3 ?times. The algorithm should run in linear time and in O(1) space. 这道题就....
分类:其他好文   时间:2015-08-20 12:56:19    阅读次数:112
LeetCode OJ 之 Single Number III (唯一的数字-三)
题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For example: ...
分类:其他好文   时间:2015-08-19 17:01:01    阅读次数:173
【LeetCode】168. Excel Sheet Column Title
题目:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26...
分类:其他好文   时间:2015-08-19 13:07:02    阅读次数:142
【LeetCode】171. Excel Sheet Column Number
题目:Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: .....
分类:其他好文   时间:2015-08-19 11:08:45    阅读次数:116
[LeetCode] Single Number III 单独的数字之三
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements ...
分类:其他好文   时间:2015-08-19 01:57:18    阅读次数:136
1294条   上一页 1 ... 80 81 82 83 84 ... 130 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!