摘要: 题目:Given twosparse matricesAandB, return the result ofAB.You may assume thatA's column number is equal toB's row number.Example:A = [ [ 1, 0, 0], [-... 阅读全文
posted @ 2015-12-20 12:48 YRB 阅读(2246) 评论(0) 推荐(0)
摘要: 题目: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible r 阅读全文
posted @ 2015-12-20 06:41 YRB 阅读(2361) 评论(2) 推荐(0)
摘要: 题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-12-20 04:05 YRB 阅读(2398) 评论(0) 推荐(0)