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
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
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
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
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
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 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
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
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
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