码迷,mamicode.com
首页 >  
搜索关键字:in place    ( 1961个结果
LeetCode Reorder List
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 exam...
分类:其他好文   时间:2014-08-28 17:47:15    阅读次数:208
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?思路:对于matrix[i][...
分类:其他好文   时间:2014-08-27 16:06:57    阅读次数:179
LeetCode: Flatten Binary Tree to Linked List
LeetCode: Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 ...
分类:其他好文   时间:2014-08-26 22:57:46    阅读次数:220
Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / ...
分类:其他好文   时间:2014-08-26 17:17:06    阅读次数:133
leetcode - Reverse Linked List II
题目:Reverse Linked List IIReverse 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,ret...
分类:其他好文   时间:2014-08-26 13:35:46    阅读次数:223
Dev GridControl,GridView 显示多行文本及合并相同单元格
显示多行文本的方法首先把gridcontrol的views的Optionsview里的RowAutoHeight设置为True在In-place Editor Repository 里添加 MemoEdit控件在Columns里选择对应的列,在ColumnEdit里选择MemoEdit控件合并相同单...
分类:其他好文   时间:2014-08-26 09:42:45    阅读次数:1058
Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.思路:使用两个向量分别记录每一行和每一列是否存在0。 1 class Solution { 2 public: 3...
分类:其他好文   时间:2014-08-24 12:49:02    阅读次数:211
poj3535 A+B (大数加法)
A+BTime Limit:2000MSMemory Limit:65536KTotal Submissions:811Accepted:371DescriptionTheResearch Institute of Given Strings(RIGS) is a well-known place ...
分类:其他好文   时间:2014-08-24 10:15:02    阅读次数:220
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array  Total Accepted: 22879 Total Submissions: 70824My Submissions Given a sorted array, remove the duplicates in place such that each element appear only on...
分类:其他好文   时间:2014-08-23 15:25:01    阅读次数:196
原型模式
模式说明所谓原型模式就是用原型实例指定创建对象的种类,并且通过复制这些原型创建新的对象。说到复制,就会有深/浅两种复制,这是面向对象的值类型和引用类型的差异,具体不作说明模式结构图程序示例说明:无代码: 1 import copy 2 class WorkExp: 3 place="" 4 ...
分类:其他好文   时间:2014-08-23 13:50:50    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!