码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
[LeetCode] Remove Element (三种解法)
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:其他好文   时间:2014-11-16 14:32:13    阅读次数:190
[Leetcode] Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-11-16 13:19:38    阅读次数:160
Leetcode-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 for...
分类:其他好文   时间:2014-11-16 08:11:04    阅读次数:178
Leetcode-Reverse Linked List II
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->...
分类:其他好文   时间:2014-11-16 07:06:37    阅读次数:173
LeetCode Reverse Linked List II
Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return...
分类:其他好文   时间:2014-11-15 00:05:30    阅读次数:259
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt...
分类:其他好文   时间:2014-11-14 20:52:34    阅读次数:154
DP计数(UVA 885&&POJ 2704)
Walking on the Safe Side  Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:其他好文   时间:2014-11-14 19:47:01    阅读次数:270
Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:其他好文   时间:2014-11-14 19:45:31    阅读次数:127
[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 for a...
分类:其他好文   时间:2014-11-14 17:21:06    阅读次数:250
[Leetcode] Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Solution:public cla...
分类:其他好文   时间:2014-11-14 17:15:48    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!