码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
【2014-11-22】《The Hardware/Software Interface》– Section 5
Stack-Based Languages Need some place to store state of each instantiation(实例) Arguments Local variables Return pointer
分类:其他好文   时间:2014-11-22 20:15:20    阅读次数:167
[ES6] 11. String Templates
ECMAscript 6 lets us use string templates to gain a lot more control over strings in JavaScript.var salutation = "Hello";var place = "New York";var gr...
分类:其他好文   时间:2014-11-22 20:09:05    阅读次数:162
Altium Designer 6三维元件库建模教程
一、AD6.9 PCB编辑环境下如何使用STEP模型的方法。在PCB 封装库中添加对应的3D模型,然后选择update pcb 即可方法:在PCB library 页面,点击place -- 3d body ,选择属性步骤模型,点击插入步骤模型,双击对应模型DIP40,放置之后,按数字键3切换到3维...
分类:其他好文   时间:2014-11-22 10:31:27    阅读次数:286
Fabled Rooks
Problem F: Fabled Rooks We would like to place n rooks, 1 ≤ n ≤ 5000, on a n×n board subject to the following restrictions The i-th rook can only be placed within the rectangle given by its l...
分类:其他好文   时间:2014-11-21 23:23:27    阅读次数:308
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?C++实现代码:#include#in...
分类:其他好文   时间:2014-11-21 10:28:47    阅读次数:294
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-11-20 23:12:33    阅读次数:172
Remove Duplicates from Sorted Array
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...
分类:其他好文   时间:2014-11-20 17:07:03    阅读次数:218
Leetcode-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? ...
分类:其他好文   时间:2014-11-20 13:20:00    阅读次数:289
Set Matrix Zeroes
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...
分类:其他好文   时间:2014-11-19 20:25:11    阅读次数:248
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 6The flattened t...
分类:其他好文   时间:2014-11-19 18:31:49    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!