码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
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 dep...
分类:其他好文   时间:2015-05-14 16:23:27    阅读次数:132
20. Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2015-05-13 08:47:31    阅读次数:145
httpd: Could not reliably determine the server's fully qualified domain name(转)
ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vim /web/apache/conf/httpd.conf (...
分类:Web程序   时间:2015-05-13 00:31:59    阅读次数:143
[LeetCode] Balanced Binary Tree
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...
分类:其他好文   时间:2015-05-12 15:37:49    阅读次数:113
LeetCode: Validate Binary Search Tree
Title:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:(1) The left subtree of a node conta...
分类:其他好文   时间:2015-05-12 11:01:30    阅读次数:96
POJ3345---Bribing FIPA(树形dp+背包)
DescriptionThere is going to be a voting at FIPA (Fédération Internationale de Programmation Association) to determine the host of the next IPWC (International Programming World Cup). Benjamin Bennett,...
分类:其他好文   时间:2015-05-12 09:33:09    阅读次数:153
LeetCode:Happy Number
题目描述: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of ...
分类:移动开发   时间:2015-05-11 18:03:15    阅读次数:136
Java [leetcode 20]Valid Parentheses
题目描述:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in ...
分类:编程语言   时间:2015-05-10 20:29:24    阅读次数:107
LeetCode 20 Valid Parentheses (C,C++,Java,Python)
Problem: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}...
分类:编程语言   时间:2015-05-10 17:21:30    阅读次数:164
Path Sum -- leetcode
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum ...
分类:其他好文   时间:2015-05-10 17:19:39    阅读次数:92
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!