码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
UVA - 12338 Anti-Rhyme Pairs (哈希)
Description D Anti-Rhyme Pairs Input: Standard Input Output: Standard Output   Often two words that rhyme also end in the same sequence of characters. We use...
分类:其他好文   时间:2014-08-13 18:45:37    阅读次数:230
FATFS 初学之 f_lseek
1 /*-----------------------------------------------------------------------*/ 2 /* Seek File R/W Pointer ...
分类:其他好文   时间:2014-08-13 17:43:27    阅读次数:1043
【Leetcode长征系列】Balanced Binary Tree
原题: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never...
分类:其他好文   时间:2014-08-13 15:03:31    阅读次数:261
POJ 2738 Two Ends 记忆化搜索
记忆化搜索,有不明白的一个小地方,求指教。。。...
分类:其他好文   时间:2014-08-13 14:56:56    阅读次数:165
leetcode -- 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 ...
分类:其他好文   时间:2014-08-13 14:51:56    阅读次数:228
【HackerRank】Running Time of Quicksort
题目链接:Running Time of QuicksortChallengeIn practice, how much faster is Quicksort (in-place) than Insertion Sort? Compare the running time of the two a...
分类:其他好文   时间:2014-08-13 14:40:26    阅读次数:262
POJ 3349 Snowflake Snow Snowflakes(哈希表)(转)
题意:判断有没有两朵相同的雪花。每朵雪花有六瓣,比较花瓣长度的方法看是否是一样的,如果对应的arms有相同的长度说明是一样的。给出n朵,只要有两朵是一样的就输出有Twin snowflakes found.,如果任何两个都是不一样的输出No two snowflakes are alike。n=10...
分类:其他好文   时间:2014-08-13 14:26:26    阅读次数:229
leetcode 刷题之路 81 Populating Next Right Pointers in Each Node
Populate each next pointer to point to its next right node. 二叉树的结构体里增加了next指针,编写程序,将二叉树里每个节点的next指针指向它右边的节点。...
分类:其他好文   时间:2014-08-13 13:16:36    阅读次数:210
POJ1060 Modular multiplication of polynomials解题报告 (2011-12-09 20:27:53)(转)
Time Limit:1000MSMemory Limit:10000KTotal Submissions:3239Accepted:1459Consider polynomials whose coefficients are 0 and 1. Addition of two polynomial...
分类:其他好文   时间:2014-08-13 12:58:06    阅读次数:247
HDU-2437-Jerboas(BFS+优先队列)
Problem Description       Jerboas are small desert-living animals, which resemble mice with a long tufted tail and very long hind legs. Jerboas shelter in well-hidden burrows. They create two types o...
分类:其他好文   时间:2014-08-13 10:33:25    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!