摘要: Description: 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 阅读全文
posted @ 2017-05-04 13:23 legooooo 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. p 阅读全文
posted @ 2017-05-04 12:04 legooooo 阅读(103) 评论(0) 推荐(0) 编辑