码迷,mamicode.com
首页 >  
搜索关键字:two pointers    ( 12138个结果
LeetCode1:Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t...
分类:其他好文   时间:2014-04-30 03:20:07    阅读次数:502
LeetCode——Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-04-30 00:21:32    阅读次数:536
POJ 3356 AGTC(DP-最小编辑距离)
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:其他好文   时间:2014-04-29 16:22:00    阅读次数:450
Binary String Matching
Binary String Matching时间限制:3000ms | 内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell ho...
分类:其他好文   时间:2014-04-29 15:02:00    阅读次数:564
[leetcode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".给定两个二进制的字符串,返回他们的和。对于a,b两个二进制字符串,首先通过交换使a的长度小于b...
分类:其他好文   时间:2014-04-28 02:05:20    阅读次数:502
How can I add a new user as sudoer using the command line?
Two ways to use sudo command for a standard user account:First,If you want to use sudo command for a standard user account, then you need to add this ...
分类:其他好文   时间:2014-04-28 00:42:49    阅读次数:616
线性时间将两个有序链表合成一个有序链表(constant additional space)
description:given two sorted singly list, merge them into one using constant additional spacealgorithm:we will reference the two linked list as list1 ...
分类:其他好文   时间:2014-04-28 00:32:52    阅读次数:711
hdu 1081 To The Max
To The Max Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7533    Accepted Submission(s): 3647 Problem Description Given a two-dim...
分类:其他好文   时间:2014-04-27 19:54:26    阅读次数:624
12138条   上一页 1 ... 1212 1213 1214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!