码迷,mamicode.com
首页 >  
搜索关键字:in place    ( 1961个结果
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. 原题链接: 题目:给定一个m * n 的矩阵,如果有一个元素是0,将其所在行和列设为0. 思路:先记录下是0 的元素的位置,再去置0. public void setZeroes(int[][] m...
分类:其他好文   时间:2014-08-23 12:43:50    阅读次数:164
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 for...
分类:其他好文   时间:2014-08-23 11:14:10    阅读次数:219
You Do Not Want A Bag To Break Or Rip
World Wide Web is a vast supply of parts for also.Alexander V. There is also a real travel organization to move their children to a new place. Afforda...
分类:其他好文   时间:2014-08-22 12:25:56    阅读次数:189
hdu2962 Trucking (最短路+二分查找)
Problem DescriptionA certain local trucking company would like to transport some goods on a cargo truck from one place to another. It is desirable to ...
分类:其他好文   时间:2014-08-21 17:03:24    阅读次数:246
【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 mat...
分类:其他好文   时间:2014-08-20 13:59:22    阅读次数:176
【Leetcode】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...
分类:其他好文   时间:2014-08-20 13:52:32    阅读次数:142
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...
分类:其他好文   时间:2014-08-19 22:08:15    阅读次数:238
POJ3258:River Hopscotch(二分)
Description Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight ...
分类:其他好文   时间:2014-08-18 16:31:12    阅读次数:201
Which Raymond Mill Maunfacturers are A lot more Qualified?
Nowdays, there are lots of varieties of raymond mill companies in market place. So to customers, it is a significant headache to pickraymond mill,raym...
分类:其他好文   时间:2014-08-18 12:13:44    阅读次数:229
ZOJ 1654 Place the Robots建图思维(分块思想)+二分匹配
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=654 AC一百道水题,不如AC一道难题来的舒服! 题意:一个n*m地图,*代表草地,#代表墙,o代表空地,要再图中的o处放机器人,机器人可以攻击(上下左右)4个方向,攻击范围无限长,而且机器人不能相互攻击,草地不能放置机器人,且机器人的攻击可以穿...
分类:其他好文   时间:2014-08-17 17:07:12    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!