码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
Merge Sort
Good for array and linked list. Stable Sort.Time Complexity: Best, Average, Worst => O(nlogn);Space Complexity: O(n), in-place merge sort makes it ver...
分类:其他好文   时间:2015-01-04 13:25:46    阅读次数:156
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-04 12:12:13    阅读次数:128
【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,return...
分类:其他好文   时间:2015-01-03 13:06:04    阅读次数:164
Leetcode: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...
分类:其他好文   时间:2015-01-02 15:50:53    阅读次数:107
swift基本数据类型
1 // Playground - noun: a place where people can play 2 3 import UIKit 4 //---------------------------------------------------------------------...
分类:编程语言   时间:2015-01-01 12:29:09    阅读次数:148
九度OJ 1093 WERTYU
题目1093:WERTYU 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:1375 解决:525 题目描述:     A common typing error is to place the hands on the keyboard one row to the right of the correct position....
分类:其他好文   时间:2015-01-01 07:53:53    阅读次数:194
[leetcode] Reverse Linked List II
题目:(LinkedList)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...
分类:其他好文   时间:2015-01-01 01:29:22    阅读次数:178
[C++]LeetCode: 62 Reverse Linked List II
题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, n sati...
分类:编程语言   时间:2014-12-30 17:18:11    阅读次数:239
笑男手札:超越站点的权限管理,UserPolicy
SharePoint2013在MySite增加了一个叫做SkyDrive Pro新功能,笑男还没来得及研究一下,已经有客户遇到问题了:在SkyDrive Pro的页面上有一条通知:"Welcome to your SkyDrive Pro, the place to store, sync, and...
分类:其他好文   时间:2014-12-30 16:32:48    阅读次数:212
swift 导读
// Playground - noun: a place where people can playimport UIKit/***********************************************************//*** 一. A Swift Tour*///1....
分类:编程语言   时间:2014-12-30 00:25:32    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!