码迷,mamicode.com
首页 >  
搜索关键字:would you like some more rice    ( 45620个结果
SPOJ 4487. Can you answer these queries VI splay
题目链接:点击打开链接题意比較明显,不赘述。删除时能够把i-1转到根,把i+1转到根下则i点就在 根右子树 的左子树,且仅仅有i这一个 点#include#include#include#includeusing namespace std;#define N 300500#define inf 1...
分类:其他好文   时间:2014-06-03 11:29:26    阅读次数:277
The Line Brings A Fun Twist To Handbags
As an umbrella holder that allows you to create a better child to keep them in your arms for comfort and safety without having to hold an umbrella in ...
分类:数据库   时间:2014-06-03 08:08:02    阅读次数:478
Word Break
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:其他好文   时间:2014-05-30 16:09:32    阅读次数:213
Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked list. *...
分类:其他好文   时间:2014-05-30 16:08:05    阅读次数:238
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree./** * Definitio...
分类:其他好文   时间:2014-05-30 16:02:40    阅读次数:289
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?/**...
分类:其他好文   时间:2014-05-30 15:59:56    阅读次数:249
Candy
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:其他好文   时间:2014-05-30 15:04:58    阅读次数:224
Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-30 15:00:54    阅读次数:335
Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-05-30 14:59:37    阅读次数:241
poj 1094 Sorting It All Out
DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smalle...
分类:其他好文   时间:2014-05-30 14:31:10    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!