码迷,mamicode.com
首页 >  
搜索关键字:题目    ( 99379个结果
【LeetCode】Binary Tree Level Order Traversal II
题目 Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20,#,#...
分类:其他好文   时间:2014-12-19 17:30:36    阅读次数:172
【LeetCode】Binary Tree Level Order Traversal
题目 Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree {3,9,20,#,#,15,7}, 3 / ...
分类:其他好文   时间:2014-12-19 17:30:08    阅读次数:167
【LeetCode】Restore IP Addresses 解题报告
【题目】 Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["255.255.11.135", "255.255.111.35"...
分类:其他好文   时间:2014-12-19 17:26:18    阅读次数:117
Vim简单的查找替换
这里简单的给大家介绍一下Vim的查找替换,众所周知,Vim对正则表达式的支持是非常好的,对于程序员来说在分析大量数据的时候,用到Vim的这个功能无疑是件利器。 首先大家要明白vim正则里面的几个特殊含义: ^ 代表行首 $ 代表行尾 \d 代表数字 \D 代表非数字 [x,y,z]:代表各种条件选择 好的,那我们就出几个常用的题目做一下来试一下吧: ...
分类:系统相关   时间:2014-12-19 15:49:48    阅读次数:296
hdu2102(bfs)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2102分析:bfs求最短时间到达'P'点,不过本题有好几个trick,我都踩到了,自己还是太嫩了。。。 注意:可能两层同个位置都是'#',还有经过'#'时只能被传送,不能经过它上下左右移动。。。#incl...
分类:其他好文   时间:2014-12-19 15:45:08    阅读次数:196
hdu 1518(dfs)
题目链接 :http://acm.hdu.edu.cn/showproblem.php?pid=1518SquareProblem DescriptionGiven a set of sticks of various lengths, is it possible to join them end...
分类:其他好文   时间:2014-12-19 15:44:33    阅读次数:185
九度OJ—题目1531:货币面值
题目1531:货币面值 时间限制:1 秒 内存限制:128 兆 特殊判题:否 提交:336 解决:122 题目描述: 小虎是游戏中的一个国王,在他管理的国家中发行了很多不同面额的纸币,用这些纸币进行任意的组合可以在游戏中购买各种装备来提升自己。有一天,他突然很想知道这些纸币的组合不能表示的最小面额是多少,请聪明的你来帮助小虎来解决这个财政问题吧。 ...
分类:其他好文   时间:2014-12-19 14:33:34    阅读次数:218
bnuoj 34985 Elegant String
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=34985We define a kind of strings as elegant string: among all the substrings of an elegant strin...
分类:其他好文   时间:2014-12-19 14:21:52    阅读次数:228
BZOJ2500: 幸福的道路
题解:一道不错的题目。树DP可以求出从每个点出发的最长链,复杂度O(n)然后就变成找一个数列里最长的连续区间使得最大值-最小值 2 3 #include 4 5 #include 6 7 #include 8 9 #include 10 11 #include 12 13...
分类:其他好文   时间:2014-12-19 14:13:16    阅读次数:300
【LeetCode】Fraction to Recurring Decimal【Solution】
【题目】 Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in paren...
分类:其他好文   时间:2014-12-19 12:11:03    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!