摘要: Question: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi 阅读全文
posted @ 2016-04-11 21:41 江湖小妞 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Question: 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 fol 阅读全文
posted @ 2016-04-11 17:37 江湖小妞 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Question: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, giv 阅读全文
posted @ 2016-04-11 15:42 江湖小妞 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Question: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representa 阅读全文
posted @ 2016-04-11 10:57 江湖小妞 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Question: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins th 阅读全文
posted @ 2016-04-11 10:01 江湖小妞 阅读(750) 评论(0) 推荐(0) 编辑