题目链接: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
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
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
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
题目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
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
题目:
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
题目: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
题目: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
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