码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
CareerCup之1.3字符串去重
【题目】原文:1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two add...
分类:其他好文   时间:2014-06-02 21:32:04    阅读次数:284
Linux 禁用触摸板
1,首先需要查看触摸板: 命令:xinput list 结果: ? Virtual core pointer id=2 [master pointer (3)] ? ? Virtual core XTEST pointer id=4 [slave poin...
分类:系统相关   时间:2014-06-02 10:07:16    阅读次数:362
Find them, Catch them
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:其他好文   时间:2014-06-02 09:38:19    阅读次数:219
POJ1068——Parencodings
ParencodingsDescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequence P ...
分类:其他好文   时间:2014-06-02 06:19:50    阅读次数:185
RabbitMQ in Action(5): Clustering and dealing with failure
Batteries included: RabbitMQ clustering The clustering built in to RabbitMQ was designed with two goals in mind: allowing consumers and producers to k...
分类:其他好文   时间:2014-06-02 06:11:46    阅读次数:392
每日算法之二十五:Divide Two Integers
Divide two integers without using multiplication, division and mod operator. 不使用乘法、除法和求模运算求两个数相除。...
分类:其他好文   时间:2014-06-01 18:16:23    阅读次数:311
【leetcode】N-queens
问题: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens...
分类:其他好文   时间:2014-06-01 18:08:28    阅读次数:334
LeetCode: Add Two Numbers 题解
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-06-01 17:05:44    阅读次数:296
【LeetCode】Merge Sorted Array
Merge Sorted ArrayGiven 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 ...
分类:其他好文   时间:2014-06-01 12:04:32    阅读次数:175
LeetCode: Scramble String [87]
【题目】 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr eat / \ / g r e at / ...
分类:其他好文   时间:2014-06-01 09:41:05    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!