码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
143. Reorder List(List)
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For ....
分类:其他好文   时间:2015-10-03 11:54:06    阅读次数:199
92. Reverse Linked List II (List)
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->...
分类:其他好文   时间:2015-10-03 11:47:05    阅读次数:162
[LeetCode][JavaScript]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...
分类:编程语言   时间:2015-10-02 17:23:58    阅读次数:203
每日算法37: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?原地图像顺时针旋转90度。由于要求空间...
分类:编程语言   时间:2015-09-30 14:22:18    阅读次数:214
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...
分类:其他好文   时间:2015-09-30 06:21:47    阅读次数:218
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 spa...
分类:其他好文   时间:2015-09-27 17:26:50    阅读次数:111
in-place数据交换
经典的排序问题问题描述 一个数组中包含两个已经排好序的子数组,设计一个in-place(原位操作)算法来对这个数组排序。测试数据为 a[] = 1 4 5 7 8 9  2 3 6 10 11 。...
分类:其他好文   时间:2015-09-24 11:03:57    阅读次数:174
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-09-24 10:53:01    阅读次数:169
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...
分类:其他好文   时间:2015-09-23 10:29:16    阅读次数:112
House Robber II——Leetcode
After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This t...
分类:其他好文   时间:2015-09-20 17:43:55    阅读次数:151
1961条   上一页 1 ... 92 93 94 95 96 ... 197 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!