摘要:
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 = 22, 5 / \ 4 8 / / \ 11 13 4 / \ ... 阅读全文
posted @ 2013-09-17 11:19
懒猫欣
阅读(142)
评论(0)
推荐(0)
摘要:
Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before 阅读全文
posted @ 2013-09-17 10:59
懒猫欣
阅读(136)
评论(0)
推荐(0)
浙公网安备 33010602011771号