摘要: Summary Ranges Given a sorted integer array without duplicates, return the summary of its ranges. Example 1: Input: [0,1,2,4,5,7] Output: ["0->2","4-> 阅读全文
posted @ 2020-07-20 15:24 十三w~w 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses 阅读全文
posted @ 2020-07-20 15:18 十三w~w 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Rectangle Area Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top ri 阅读全文
posted @ 2020-07-20 14:45 十三w~w 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Count Complete Tree Nodes Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a com 阅读全文
posted @ 2020-07-20 14:15 十三w~w 阅读(88) 评论(0) 推荐(0) 编辑