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...
分类:
其他好文 时间:
2015-02-20 09:40:34
阅读次数:
140
10082 WERTYUA common typing error is to place the hands on the keyboard one row to the right of the correct position. So ‘Q’ is typed as ‘W’ and ‘J’ i...
分类:
其他好文 时间:
2015-02-19 18:38:15
阅读次数:
222
OK, this post is gonna be an example to autostart tomcat when ubuntu starts.We know that if you create init.d script and place it in /etc/init.d/ dire...
分类:
其他好文 时间:
2015-02-19 10:43:56
阅读次数:
184
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 matter what you leave beyond the new length.
题...
分类:
其他好文 时间:
2015-02-18 19:57:53
阅读次数:
216
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 another array, you must do this in place with...
分类:
其他好文 时间:
2015-02-17 21:05:58
阅读次数:
168
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:
其他好文 时间:
2015-02-16 19:31:08
阅读次数:
187
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2015-02-16 11:34:52
阅读次数:
120
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 another array, you must do this in place with...
分类:
其他好文 时间:
2015-02-16 00:33:09
阅读次数:
175
uva 10474 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 one afte...
分类:
编程语言 时间:
2015-02-15 21:53:56
阅读次数:
446
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路1:新建一个新的二维矩阵,原矩阵按...
分类:
其他好文 时间:
2015-02-15 19:22:15
阅读次数:
149