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-01-11 14:55:05
阅读次数:
164
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.
c...
分类:
其他好文 时间:
2015-01-11 14:51:23
阅读次数:
122
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?我直接开了一个大小相同的数组resul...
分类:
其他好文 时间:
2015-01-11 14:50:19
阅读次数:
154
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2015-01-11 00:53:08
阅读次数:
262
smtp auth success,other not sureservice saslauthd start[root@localhost ~]# cat /etc/sysconfig/saslauthd# Directory in which to place saslauthd's liste...
分类:
其他好文 时间:
2015-01-10 19:40:24
阅读次数:
378
题目:Given a singly linked listL: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 e...
分类:
编程语言 时间:
2015-01-09 23:44:17
阅读次数:
237
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?假设旋转的时候...
分类:
其他好文 时间:
2015-01-09 20:53:57
阅读次数:
215
#include#includeint alph(char c){ if((c>='a'&&c='A'&&clength) { length=len; place=point; } flag=1; len=0; } return(place);}void main(){...
分类:
其他好文 时间:
2015-01-09 19:18:36
阅读次数:
183
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
编程语言 时间:
2015-01-09 08:04:12
阅读次数:
289
题目: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...
分类:
编程语言 时间:
2015-01-09 00:09:55
阅读次数:
301