摘要: [抄题]: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that y 阅读全文
posted @ 2018-08-09 17:47 苗妙苗 阅读(208) 评论(0) 推荐(0)
摘要: gas = [1,2,3,4,5], cost = [3,4,5,1,2]index =[0,1,2,3,4]//cost = index - 1 [抄题]: There are N gas stations along a circular route, where the amount of g 阅读全文
posted @ 2018-08-09 16:23 苗妙苗 阅读(292) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node 阅读全文
posted @ 2018-08-09 15:26 苗妙苗 阅读(174) 评论(0) 推荐(0)