码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
leetCode(42):Flatten Binary Tree to Linked List
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使用线程删除文件夹中的图片
BCB新建线程DeleteImgThread类,其会默认继承Thread类,然后在Execute函数中编写代码,void __fastcall DeleteImgThread::Execute() { //---- Place thread code here ---- while(!this->Terminated) { //删除.\RecvTmp中的图片...
分类:编程语言   时间:2015-07-17 21:05:19    阅读次数:137
*Rotate Image
题目: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
leetcode-27-Remove Element
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 2015
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
[leedcode 92] Reverse Linked List II
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
LeetCode:Rotate Image
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
*House Robber II
题目: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
[LeetCode][Java] 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? 题意: 给定一个 n x n 的二维矩阵,来表示一副图像。 把图像旋转90度(顺时针...
分类:编程语言   时间:2015-07-14 22:46:32    阅读次数:320
[leedcode 73] Set Matrix Zeroes
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!