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 ...
分类:
其他好文 时间:
2016-09-04 15:48:56
阅读次数:
129
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 思路: 相当于26进制转10进制,要注意A从1开始而不是从0开始的边界条件。 解法: ...
分类:
其他好文 时间:
2016-09-04 15:42:27
阅读次数:
132
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 很惭愧,这一题我没折腾出来。刚刚做了她的姐妹题,是把字母转化成数字,但是反过来就很难搞了 ...
分类:
其他好文 时间:
2016-09-04 14:25:49
阅读次数:
119
题目: 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 ...
分类:
其他好文 时间:
2016-09-04 11:32:50
阅读次数:
88
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. Hi ...
分类:
其他好文 时间:
2016-08-31 07:05:58
阅读次数:
108
题目: 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 spac ...
分类:
其他好文 时间:
2016-08-26 06:40:13
阅读次数:
229
哈哈,我又来了。昨天发现题目太简单就没有放上来,今天来了一道有序链表的题。题目如下: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Giv ...
分类:
其他好文 时间:
2016-08-25 23:56:12
阅读次数:
230
Given two arrays, write a function to compute their intersection.
Example:
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].
Note:
Each element in the result should appear as many ti...
分类:
其他好文 时间:
2016-08-22 21:49:10
阅读次数:
106
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 ...
分类:
其他好文 时间:
2016-08-22 21:46:53
阅读次数:
106
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
其他好文 时间:
2016-08-20 16:26:26
阅读次数:
150