码迷,mamicode.com
首页 >  
搜索关键字:longest    ( 2697个结果
BZOJ1954: Pku3764 The xor-longest Path
题解:在树上i到j的异或和可以直接转化为i到根的异或和^j到根的异或和。所以我们把每个点到根的异或和处理出来放到trie里面,再把每个点放进去跑一遍即可。代码: 1 #include 2 3 #include 4 5 #include 6 7 #include 8 9 #i...
分类:其他好文   时间:2014-12-19 14:11:36    阅读次数:266
leetcode----------Maximum Depth of Binary Tree
题目Maximum Depth of Binary Tree通过率44.2%难度EasyGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pat...
分类:其他好文   时间:2014-12-18 20:28:05    阅读次数:214
leetcode------Maximum Depth of Binary Tree
标题:Maximum Depth of Binary Tree通过率:44.2%难度:简单Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pa...
分类:其他好文   时间:2014-12-18 15:05:18    阅读次数:153
【LeetCode】Longest Valid Parentheses
Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substr...
分类:其他好文   时间:2014-12-18 11:48:19    阅读次数:158
九度OJ 1042 Coincidence (动态规划求最长公共子序列)
题目1042:Coincidence 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:1689 解决:898 题目描述: Find a longest common subsequence of two strings. 输入: First and second line of each input case co...
分类:其他好文   时间:2014-12-18 01:42:32    阅读次数:162
Longest Substring Without Repeating Characters
int longestSubString(char* arr, int len){ if (arr == NULL || len <= 0) return 0; int i = 0, j = 0; int maxLen = 0; bool exist[256] ...
分类:其他好文   时间:2014-12-17 22:34:06    阅读次数:177
【leetcode】 Longest Valid Parentheses (hard)★
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-12-17 17:55:07    阅读次数:160
Longest Palindromic Substring(最长回文子串)
题目描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique l...
分类:其他好文   时间:2014-12-17 16:10:40    阅读次数:167
Maximum Depth of Binary Tree
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41964475 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:其他好文   时间:2014-12-16 21:07:51    阅读次数:197
zepto - scrollLeft
The longest word in the english dictionary is: pneumonoultramicroscopicsilicovolcanoconiosis.把滚动条的水平位置设置为 100px$("button").click(function(){ ...
分类:其他好文   时间:2014-12-16 18:55:22    阅读次数:683
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!