码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
HDU-4879-ZCC loves march(map+set+并查集)
Description On a m*m land stationed n troops, numbered from 1 to n. The i-th troop's position can be described by two numbers (xi,yi) (1 Then there are t minutes, in each minute one of the followi...
分类:其他好文   时间:2014-07-28 16:25:13    阅读次数:356
POJ 1837 Balance (DP)
Description Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two arms of negligible weight and each arm's length...
分类:其他好文   时间:2014-07-28 16:14:46    阅读次数:244
POJ 3468 线段树+lazy标记
lazy标记   Time Limit:5000MS     Memory Limit:131072KB     64bit IO Format:%I64d & %I64u  Submit Status Description You have N integers, A1, A2, ... , AN. You need to deal with two kin...
分类:其他好文   时间:2014-07-28 15:53:03    阅读次数:276
Merge Sorted Array leetcode java(回顾MergeTwoArray和MergeTwoLinkedList)
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or e....
分类:编程语言   时间:2014-07-28 14:47:23    阅读次数:1108
数据绑定到ADO.NET
// De?ne a DataSet with a single DataTable.DataSet dsInternal = new DataSet();dsInternal.Tables.Add("Users"); // De?ne two columns for this table.dsI....
分类:Web程序   时间:2014-07-28 11:20:50    阅读次数:260
LeetCode——Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-07-28 00:28:19    阅读次数:273
gcc: dereferencing pointer to incomplete type错误
dereferencing pointer to incomplete type是什么错误?...
分类:其他好文   时间:2014-07-27 23:56:30    阅读次数:279
Median of Two Sorted Arrays
题目There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should b...
分类:其他好文   时间:2014-07-27 22:49:39    阅读次数:176
SPOJ - MYQ10 Mirror Number (数位DP)
Description A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.  Given two ...
分类:其他好文   时间:2014-07-27 11:10:22    阅读次数:204
Divide Two Integers leetcode java
题目:Divide two integers without using multiplication, division and mod operator.题解:这道题我自己没想出来。。。乘除取模都不让用。。那只有加减了。。。我参考的http://blog.csdn.net/perfect888....
分类:编程语言   时间:2014-07-27 11:06:32    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!