码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
[LeetCode] 27. Remove Element ☆
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:其他好文   时间:2017-02-20 18:35:24    阅读次数:162
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 fo ...
分类:其他好文   时间:2017-02-15 15:00:33    阅读次数:170
26. Remove Duplicates from Sorted Array
https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Given a sorted array, remove the duplicates in place such that each element appear ...
分类:其他好文   时间:2017-02-05 12:25:20    阅读次数:160
Where is the Marble?
Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles ...
分类:其他好文   时间:2017-02-03 20:47:35    阅读次数:181
48. Rotate Image
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? 此题可以用3*3的矩阵来 ...
分类:其他好文   时间:2017-02-02 15:36:03    阅读次数:132
280. Wiggle Sort
Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3, 5, 2, 1, 6, 4], ...
分类:其他好文   时间:2017-02-02 10:50:02    阅读次数:180
Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked List Given a binary tree, flatten it to a linked list in-place. For example,Given The; flattened tree should look like: ...
分类:其他好文   时间:2017-02-01 22:37:27    阅读次数:156
213. House Robber II
Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha ...
分类:其他好文   时间:2017-01-30 10:34:57    阅读次数:198
Flatten Binary Tree to Linked List Leetcode
Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 ...
分类:其他好文   时间:2017-01-29 10:57:33    阅读次数:227
27. Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:其他好文   时间:2017-01-28 10:07:08    阅读次数:198
1961条   上一页 1 ... 54 55 56 57 58 ... 197 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!