Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年5月20日

摘要: A high quality DP problem to work on. It is not an merely educational DP, it is subtle.Basic ideas: 1. Run original DP twice, 1st with num[0] selecte... 阅读全文
posted @ 2015-05-20 11:00 Tonix 阅读(443) 评论(0) 推荐(0)

摘要: Trie, again.class TrieNode {public: // Initialize your data structure here. TrieNode() : prev(nullptr), c(0), bIsLast(false) { } TrieNo... 阅读全文
posted @ 2015-05-20 04:32 Tonix 阅读(193) 评论(0) 推荐(0)

摘要: I'm glad to see that LeetCode has finally realized the importance of Trie.My C++ code can be further optimized..class TrieNode {public: // Initiali... 阅读全文
posted @ 2015-05-20 01:28 Tonix 阅读(265) 评论(0) 推荐(0)