摘要: 题目: 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 阅读(434) 评论(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 阅读(922) 评论(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 阅读(291) 评论(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 阅读(1338) 评论(0) 推荐(0)