Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年8月25日

摘要: Key: each of 2\3\5 is trying to multiply with the least number it has not been multiplied.class Solution {public: int nthUglyNumber(int n) { ... 阅读全文
posted @ 2015-08-25 13:15 Tonix 阅读(125) 评论(0) 推荐(0)

摘要: Another topological sorting problem. Note: the DFS one is like a 'post-order' traversal.class Solution { unordered_map> g; unordered_set visited... 阅读全文
posted @ 2015-08-25 12:44 Tonix 阅读(242) 评论(0) 推荐(0)