码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
Leetcode--Remove Duplicates from Sorted Array
Problem Description: 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 ...
分类:其他好文   时间:2014-08-01 00:08:50    阅读次数:274
Font Awesome Text 使用方法
fontawesometext:fa_icon="fa-github"the icon to place, as per theFont Awesome Cheat Sheetandroid:textSize="12sp"Text size must always be in sp!android:...
分类:其他好文   时间:2014-07-31 16:29:46    阅读次数:272
ZOJ 1654 Place the Robots 二分图最大匹配
唉,又是神一样的建模,表示完全想不到。题意是给你一块地,上面有空地,草地,障碍三种地形,然后让你在上面放机器人,机器人只能放在空地上。机器人会向上下左右四个方向发出攻击,机器人的攻击可以穿过草地但是无法穿过障碍。问你在不会是机器人相互攻击的前提下,最多能放多少个机器人。我觉得大致的思路应该是这样的,...
分类:其他好文   时间:2014-07-31 16:22:16    阅读次数:228
poj 2236:Wireless Network(并查集,提高题)
Wireless NetworkTime Limit:10000MSMemory Limit:65536KTotal Submissions:16065Accepted:6778DescriptionAn earthquake takes place in Southeast Asia. The A...
分类:Web程序   时间:2014-07-30 11:51:53    阅读次数:316
(校赛)URAL 1991 The battle near the swamp
In the battle with the Trade Federation, Queen Amidala decided to ask gungans for help. Jar Jar Binks escorted the Queen and her people to the holy place where they had an agreement. The gungans agree...
分类:其他好文   时间:2014-07-29 15:01:46    阅读次数:235
[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...
分类:其他好文   时间:2014-07-29 14:07:58    阅读次数:163
Remove Element leetcode java
题目: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....
分类:编程语言   时间:2014-07-27 21:28:05    阅读次数:228
Remove Duplicates from Sorted Array leetcode java
题目: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....
分类:编程语言   时间:2014-07-27 21:26:35    阅读次数:267
[LeetCode] Set Matrix Zeroes
Given a m x n matrix, 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...
分类:其他好文   时间:2014-07-26 14:29:30    阅读次数:183
Reorder List leetcode java
题目: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.F....
分类:编程语言   时间:2014-07-26 09:51:47    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!