摘要: Problem Definition: 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 tha... 阅读全文
posted @ 2015-07-16 20:32 曾可爱 阅读(142) 评论(0) 推荐(0)
摘要: Problem Definition: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at ... 阅读全文
posted @ 2015-07-16 17:14 曾可爱 阅读(82) 评论(0) 推荐(0)
摘要: Problem Definition:Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top... 阅读全文
posted @ 2015-07-16 16:55 曾可爱 阅读(176) 评论(0) 推荐(0)
摘要: Problem Definition: Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9 to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This pr... 阅读全文
posted @ 2015-07-16 12:20 曾可爱 阅读(94) 评论(0) 推荐(0)
摘要: Problem Definition: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0-... 阅读全文
posted @ 2015-07-16 11:45 曾可爱 阅读(166) 评论(0) 推荐(0)