摘要: Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the root.Note: The length of path between two nodes is re... 阅读全文
posted @ 2017-10-10 20:33 xiejunzhao 阅读(187) 评论(0) 推荐(0)
摘要: Implement a MapSum class with insert, and sum methods.For the method insert, you'll be given a pair of (string, integer). The string represents the key and the integer represents the value. If the key... 阅读全文
posted @ 2017-10-10 20:33 xiejunzhao 阅读(353) 评论(0) 推荐(0)