会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年5月13日
LeetCode "Mininum Size Subarray Sum"
摘要: O(n): Sliding window:class Solution {public: int minSubArrayLen(int s, vector& nums) { int len = nums.size(); if (len == 0) return...
阅读全文
posted @ 2015-05-13 15:43 Tonix
阅读(234)
评论(0)
推荐(0)
LeetCode "Course Schedule"
摘要: Topological sorting. This is my DFS solution. Please note that I used _rec to avoid duplicate checking.class Solution {public: map rec; set _rec...
阅读全文
posted @ 2015-05-13 14:37 Tonix
阅读(150)
评论(0)
推荐(0)
LeetCode "Implement Trie (Prefix Tree)"
摘要: Implementation problem.class TrieNode {public: // Initialize your data structure here. TrieNode() { c = 0; bIsLast = false; } ...
阅读全文
posted @ 2015-05-13 13:28 Tonix
阅读(267)
评论(0)
推荐(0)