码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
跳跃表 -- 随机平衡原理
Skip lists are a data structure that can be used in place of balanced trees.Skip lists use probabilistic balancing rather than strictly enforced balan...
分类:其他好文   时间:2015-06-06 11:58:32    阅读次数:204
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 ...
分类:其他好文   时间:2015-06-06 06:51:13    阅读次数:120
Leetcode--代码随笔(备忘)
题目:Reverse Linked List II题意:Reverse a linked list from position m to n. Do it in-place and in one-pass.下面这段代码,有两个地方,一个是dummy节点的设置,4、5行;另一个是11-14行,局部全实...
分类:其他好文   时间:2015-06-05 20:59:28    阅读次数:109
Java for LeetCode 143 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-06-04 22:28:06    阅读次数:151
POJ 2236 Wireless Network
Time Limit: 10000MSMemory Limit: 65536KTotal Submissions: 18146Accepted: 7660DescriptionAn earthquake takes place in Southeast Asia. The ACM (Asia Coo...
分类:Web程序   时间:2015-06-04 22:25:20    阅读次数:181
LeetCode:Remove Element
Prob;lem: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 do...
分类:其他好文   时间:2015-06-04 11:19:29    阅读次数:94
LeetCode 27: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 length. 题...
分类:其他好文   时间:2015-06-04 09:52:58    阅读次数:159
Reorder List -- leetcode
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 example, Given {1,2,3,4}, reorder it to ...
分类:其他好文   时间:2015-06-04 09:49:54    阅读次数:114
LeetCode:Remove Duplicates from Sorted Array
Problems: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 ...
分类:其他好文   时间:2015-06-04 09:44:13    阅读次数:157
[LeetCode] #26 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-06-04 00:50:42    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!