上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页
摘要: 题目: 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) 编辑
摘要: 题目: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following 阅读全文
posted @ 2015-11-24 06:24 YRB 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums 阅读全文
posted @ 2015-11-24 05:38 YRB 阅读(915) 评论(1) 推荐(0) 编辑
摘要: 题目: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and 阅读全文
posted @ 2015-11-24 03:02 YRB 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 题目: A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you areg 阅读全文
posted @ 2015-11-24 00:07 YRB 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the 阅读全文
posted @ 2015-11-22 23:28 YRB 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页