摘要: Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval li 阅读全文
posted @ 2019-02-03 15:17 yuxihong 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1repr 阅读全文
posted @ 2019-02-03 13:10 yuxihong 阅读(252) 评论(0) 推荐(0) 编辑
摘要: We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[index] 阅读全文
posted @ 2019-02-03 12:42 yuxihong 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the vertical order traversal of its nodes values. For each node at position (X, Y), its left and right children respective 阅读全文
posted @ 2019-02-03 12:22 yuxihong 阅读(152) 评论(0) 推荐(0) 编辑