码迷,mamicode.com
首页 >  
搜索关键字:in place    ( 1961个结果
hdu 4770 Lights Against Dudely
Problem Description Harry: "But Hagrid. How am I going to pay for all of this? I haven't any money."  Hagrid: "Well there's your money, Harry! Gringotts, the wizard bank! Ain't no safer place. Not...
分类:其他好文   时间:2014-06-20 10:25:17    阅读次数:228
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,...
分类:其他好文   时间:2014-06-11 06:07:11    阅读次数:392
LeetCode——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. 中...
分类:其他好文   时间:2014-06-10 18:41:04    阅读次数:191
LeetCode OJ - Reverse Linked List II
题目: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->2->5->NULL...
分类:其他好文   时间:2014-06-09 23:03:18    阅读次数:254
Leetcode::Flatten Binary Tree to Linked List
Description:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The...
分类:其他好文   时间:2014-06-08 18:34:52    阅读次数:214
[LeetCode] Remove Element [20]
题目 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. 原题链接(点我) 解题思路 给一个数组和一个数字,移除该数字在数组中所有出现的地方。 这是一个非常简单的题目,应...
分类:其他好文   时间:2014-06-08 04:05:50    阅读次数:284
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-06-07 20:33:17    阅读次数:283
Swift初探一
今天安装了一下Xcode6-Beta版,想来体验一下Swift的魅力:安装Swift系统最低版本为:10.9.3 只看看一点The Swift Programming Language,下面给大家分享一下:(待续。。。)// Playground - noun: a place where people can play import Cocoa ///1.声明一个可变的变量 var str...
分类:其他好文   时间:2014-06-07 13:54:43    阅读次数:259
LeetCode: Flatten Binary Tree to Linked List [114]
【题目】 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 2 3 4 \...
分类:其他好文   时间:2014-06-07 11:37:00    阅读次数:153
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-06-05 16:56:29    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!