2017年3月29日

LeetCode : Binary Tree Paths

摘要: Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree:1 / \ 2 3 \ 5 All root-to-leaf path... 阅读全文

posted @ 2017-03-29 22:38 gechen 阅读(82) 评论(0) 推荐(0) 编辑

LeetCode : Number of Segments in a String

摘要: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the... 阅读全文

posted @ 2017-03-29 09:29 gechen 阅读(77) 评论(0) 推荐(0) 编辑

导航