会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2014年8月2日
LeetCode "Restore IP Addresses"
摘要: It is all about corner cases.class Solution {public: vector retv; bool isValid(string &sub) { unsigned cnt = sub.length(); if (...
阅读全文
posted @ 2014-08-02 11:07 Tonix
阅读(182)
评论(0)
推荐(0)
LeetCode "Permutations"
摘要: Lexicographicallyalgorithms:1. Iterate array from back to front, and find the first decreasing point: 1,2,4,3 -- 42. Iterate array from back to front,...
阅读全文
posted @ 2014-08-02 03:42 Tonix
阅读(142)
评论(0)
推荐(0)
LeetCode "Sort List"
摘要: First I implemented it by QuickSort, but got a TLE:class Solution {public: struct Pair { Pair(ListNode *pS, ListNode *pE) : pStart(pS), p...
阅读全文
posted @ 2014-08-02 03:19 Tonix
阅读(147)
评论(0)
推荐(0)