学会思考
刻意练习
摘要: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and sum 阅读全文
posted @ 2019-09-15 13:28 Worty 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2019-09-15 10:00 Worty 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Design and implement a TwoSum class. It should support the following operations:add and find. add - Add the number to an internal data structure.find 阅读全文
posted @ 2019-09-15 09:42 Worty 阅读(222) 评论(0) 推荐(0) 编辑