摘要: 题目: Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 链接: http://leetcode.com/problems/invert-binary-tre 阅读全文
posted @ 2015-11-25 12:36 YRB 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack 阅读全文
posted @ 2015-11-25 12:27 YRB 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or mi... 阅读全文
posted @ 2015-11-25 07:26 YRB 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner 阅读全文
posted @ 2015-11-25 04:17 YRB 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary tree every level 阅读全文
posted @ 2015-11-25 01:45 YRB 阅读(2030) 评论(0) 推荐(0) 编辑