上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页
摘要: 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-09-29 02:30 amazingzoe 阅读(132) 评论(0) 推荐(0)
摘要: Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, givenn... 阅读全文
posted @ 2015-09-24 06:22 amazingzoe 阅读(204) 评论(0) 推荐(0)
摘要: I. Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.Accordi... 阅读全文
posted @ 2015-09-24 06:20 amazingzoe 阅读(164) 评论(0) 推荐(0)
摘要: Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h... 阅读全文
posted @ 2015-09-15 05:12 amazingzoe 阅读(112) 评论(0) 推荐(0)
摘要: Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文
posted @ 2015-09-12 05:13 amazingzoe 阅读(104) 评论(0) 推荐(0)
摘要: Given an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm should run in linear time and in O(1) space.Analys... 阅读全文
posted @ 2015-09-12 02:45 amazingzoe 阅读(131) 评论(0) 推荐(0)
摘要: Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].Solv... 阅读全文
posted @ 2015-09-11 04:59 amazingzoe 阅读(137) 评论(0) 推荐(0)
摘要: Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers ... 阅读全文
posted @ 2015-09-11 01:26 amazingzoe 阅读(126) 评论(0) 推荐(0)
摘要: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c... 阅读全文
posted @ 2015-09-10 05:02 amazingzoe 阅读(100) 评论(0) 推荐(0)
摘要: Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.For example, givenn=12, return... 阅读全文
posted @ 2015-09-10 04:35 amazingzoe 阅读(125) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页