摘要: Problem statement: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only con 阅读全文
posted @ 2017-05-17 23:57 蓝色地中海 阅读(205) 评论(0) 推荐(0)
摘要: Problem statement: Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal 阅读全文
posted @ 2017-05-17 11:26 蓝色地中海 阅读(240) 评论(0) 推荐(0)
摘要: Problem statement: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round 阅读全文
posted @ 2017-05-17 09:17 蓝色地中海 阅读(150) 评论(0) 推荐(0)
摘要: Problem statement: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the eleme 阅读全文
posted @ 2017-05-17 06:54 蓝色地中海 阅读(104) 评论(0) 推荐(0)