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
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
唉,又是神一样的建模,表示完全想不到。题意是给你一块地,上面有空地,草地,障碍三种地形,然后让你在上面放机器人,机器人只能放在空地上。机器人会向上下左右四个方向发出攻击,机器人的攻击可以穿过草地但是无法穿过障碍。问你在不会是机器人相互攻击的前提下,最多能放多少个机器人。我觉得大致的思路应该是这样的,...
分类:
其他好文 时间:
2014-07-31 16:22:16
阅读次数:
228
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
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
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
题目: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
题目: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
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
题目: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