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
...
分类:
其他好文 时间:
2015-07-17 22:51:18
阅读次数:
158
BCB新建线程DeleteImgThread类,其会默认继承Thread类,然后在Execute函数中编写代码,void __fastcall DeleteImgThread::Execute()
{
//---- Place thread code here ----
while(!this->Terminated)
{
//删除.\RecvTmp中的图片...
分类:
编程语言 时间:
2015-07-17 21:05:19
阅读次数:
137
题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解题思路:In-place So...
分类:
其他好文 时间:
2015-07-16 23:53:38
阅读次数:
116
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 matter what you leave ...
分类:
其他好文 时间:
2015-07-16 22:18:11
阅读次数:
133
Trends and Highlights of ICML 2015There were a number of exciting things happening atICML this past week, which took place in Lille, France.Deep learn...
分类:
其他好文 时间:
2015-07-16 21:58:30
阅读次数:
153
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-07-16 18:23:01
阅读次数:
123
Problem: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?思路:顺时针方...
分类:
其他好文 时间:
2015-07-16 11:23:49
阅读次数:
121
题目: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. Thi...
分类:
其他好文 时间:
2015-07-15 12:49:39
阅读次数:
116
题目:
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?
题意:
给定一个 n x n 的二维矩阵,来表示一副图像。
把图像旋转90度(顺时针...
分类:
编程语言 时间:
2015-07-14 22:46:32
阅读次数:
320
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.public class Solution { public void setZeroes(int[][] matr...
分类:
其他好文 时间:
2015-07-14 19:51:10
阅读次数:
105