摘要: 题目: Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference 阅读全文
posted @ 2015-12-02 11:51 YRB 阅读(3225) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all 阅读全文
posted @ 2015-12-02 10:54 YRB 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement an iterator to flatten a 2d vector. For example,Given 2d vector = By calling next repeatedly until hasNext returns false, the order of e 阅读全文
posted @ 2015-12-02 06:01 YRB 阅读(2005) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, count the number of uni-value subtrees. A Uni-value subtree means all nodes of the subtree have the same value. For example:G 阅读全文
posted @ 2015-12-02 04:21 YRB 阅读(1669) 评论(0) 推荐(0) 编辑