码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
Remove Element
https://oj.leetcode.com/problems/remove-element/Given an array and a value, remove all instances of that value in place and return the new length.The ...
分类:其他好文   时间:2015-02-03 00:33:05    阅读次数:197
算法设计与分析基础(第3版)读书笔记(及几处翻译上的错误~~)
算法设计与分析基础(第3版) p16 in-place翻译为‘在位’?‘就地’更合适点p38 amortized应翻译为‘均摊’,‘摊销’这个词简直莫名其妙(可能因为翻译是做算法交易导致的?)p64 迭代优于递归(迭代始终是增量式的,而递归就没办法增量了,除非能够dump整个运行时栈)p73 通过算法可视化得到一个更好的非递归算法(人的图像认知直觉思维?)p79 验证一个拓扑...
分类:编程语言   时间:2015-02-02 12:35:58    阅读次数:239
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 beyond t...
分类:其他好文   时间:2015-02-02 12:34:19    阅读次数:158
LeetCode --- 26. Remove Duplicates from Sorted Array
题目链接: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 ano...
分类:其他好文   时间:2015-02-02 12:34:17    阅读次数:151
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 mat...
分类:其他好文   时间:2015-02-01 16:00:25    阅读次数:137
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-01-30 22:58:55    阅读次数:299
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 beyond the new len...
分类:其他好文   时间:2015-01-29 17:40:24    阅读次数:126
Rotate Image -- leetcode
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-01-28 14:49:45    阅读次数:131
[LeetCode] Reorder List 链表重排序
Given a singly linked list L: 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 ....
分类:编程语言   时间:2015-01-28 07:22:02    阅读次数:210
leetcode 27. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2015-01-26 18:56:42    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!