码迷,mamicode.com
首页 >  
搜索关键字:in-place    ( 1961个结果
UVA - 12230 Crossing Rivers 概率期望
You live in a village but work in another village. You decided to follow the straight path between yourhouse (A) and the working place (B), but there ...
分类:其他好文   时间:2016-01-14 15:39:55    阅读次数:189
leetcode 26 -- Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array 题目: Given a sorted array, remove the duplicates in place such that each element appear only once and r...
分类:其他好文   时间:2016-01-14 09:50:32    阅读次数:140
leetcode 73. Set Matrix Zeroes
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight forward solution...
分类:其他好文   时间:2016-01-12 06:36:27    阅读次数:207
ZOJ1654 Place the Robots(二分图最大匹配)
二分图最大匹配也叫二分图最大边独立数,就是二分图中最多能取出两两不相邻的边的数目。如果题目没有墙,那就是一道经典的二分图最大匹配问题:把地图上的行和列分别作为点的X部和Y部,地图上每一块空地看作边,边的两个端点就是它所在的x行y列。这样,求最大边独立集即可。而这一题有墙,然后我不会了。。其实这题的建...
分类:其他好文   时间:2016-01-11 22:07:08    阅读次数:172
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...
分类:其他好文   时间:2016-01-10 23:55:48    阅读次数:144
MySQL 学习用employee数据库表参考使用
download place:https://launchpad.net/test-db/ ,choose this file from the right panel:employees_db-full-1.0.6.tar.bz2 this is the full version. unzip t...
分类:数据库   时间:2016-01-09 20:19:56    阅读次数:184
Flatten Binary Tree to Linked List
Question:https://leetcode.com/problems/flatten-binary-tree-to-linked-list/题目:Given a binary tree, flatten it to a linked list in-place.For example,Giv...
分类:其他好文   时间:2016-01-07 13:20:22    阅读次数:175
LightOJ1010---Knights in Chessboard (规律题)
Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be placed in the ches...
分类:其他好文   时间:2016-01-07 10:10:52    阅读次数:218
leetcode92 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.No...
分类:其他好文   时间:2016-01-06 17:57:32    阅读次数:118
LeetCode(27):Remove Element
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....
分类:其他好文   时间:2016-01-05 15:34:19    阅读次数:123
1961条   上一页 1 ... 82 83 84 85 86 ... 197 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!