码迷,mamicode.com
首页 >  
搜索关键字:appear    ( 1294个结果
LeetCode 26 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 ...
分类:其他好文   时间:2016-09-04 15:48:56    阅读次数:129
LeetCode 171 Excel Sheet Column Number
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
Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 很惭愧,这一题我没折腾出来。刚刚做了她的姐妹题,是把字母转化成数字,但是反过来就很难搞了 ...
分类:其他好文   时间:2016-09-04 14:25:49    阅读次数:119
[LeetCode] 83. 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 ...
分类:其他好文   时间:2016-09-04 11:32:50    阅读次数:88
LeetCode-Majority Element II
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
【LeetCode】26. 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 spac ...
分类:其他好文   时间:2016-08-26 06:40:13    阅读次数:229
leetcode修炼之路——83. Remove Duplicates from Sorted List
哈哈,我又来了。昨天发现题目太简单就没有放上来,今天来了一道有序链表的题。题目如下: 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
Leetcode_350_Intersection of Two Arrays II
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 ,除去链表中相邻的重复元素
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
NYOJ 5 Binary String Matching【string find的运用】
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
1294条   上一页 1 ... 59 60 61 62 63 ... 130 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!