码迷,mamicode.com
首页 >  
搜索关键字:leecode duplicates    ( 1908个结果
CTCI 2.1
Write code to remove duplicates from an unsorted linked list.FOLLOW UPHow would you solve this problem if a temporary buffer is not allowed?/* Use a H...
分类:其他好文   时间:2014-07-08 00:59:05    阅读次数:305
leetcode 题解:Remove Duplicates from Sorted Array(已排序数组去重)
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:其他好文   时间:2014-07-03 20:58:08    阅读次数:248
Leetcode Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.class Solution...
分类:其他好文   时间:2014-07-03 20:25:21    阅读次数:219
(待解决)leecode 分词利用词典分词 word break
不戚戚于贫贱,不汲汲于富贵 ---五柳先生Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dict.....
分类:其他好文   时间:2014-07-03 20:21:27    阅读次数:225
Leetcode Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.此题目有两种解决思路:1)递归...
分类:其他好文   时间:2014-07-03 20:07:01    阅读次数:199
leecode 回文字符串加强版
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:其他好文   时间:2014-07-03 19:38:58    阅读次数:287
删除顺序链表中重复的数 (一) leecode
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-07-03 18:57:04    阅读次数:193
[LeetCode]Remove Duplicates from Sorted List
[LeetCode]Remove Duplicates from Sorted List...
分类:其他好文   时间:2014-07-03 16:00:08    阅读次数:202
leetcode 题解:Remove Duplicates from Sorted Array II(已排序数组去三次及以上重复元素)
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ...
分类:其他好文   时间:2014-07-03 12:10:12    阅读次数:191
[leetcode] Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets.
分类:其他好文   时间:2014-07-02 20:19:21    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!