上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 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 as sh... 阅读全文
posted @ 2015-06-15 17:41 TonyLuis 阅读(294) 评论(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, exc... 阅读全文
posted @ 2015-06-15 17:39 TonyLuis 阅读(541) 评论(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 matr... 阅读全文
posted @ 2015-06-15 17:26 TonyLuis 阅读(459) 评论(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[j] ... 阅读全文
posted @ 2015-06-15 16:56 TonyLuis 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] an... 阅读全文
posted @ 2015-06-09 21:34 TonyLuis 阅读(174) 评论(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 are give... 阅读全文
posted @ 2015-06-09 21:33 TonyLuis 阅读(816) 评论(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 arr... 阅读全文
posted @ 2015-06-09 21:32 TonyLuis 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ... 阅读全文
posted @ 2015-06-09 21:30 TonyLuis 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For examp... 阅读全文
posted @ 2015-06-09 21:28 TonyLuis 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f... 阅读全文
posted @ 2015-06-09 20:45 TonyLuis 阅读(327) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页