2014年10月1日

[leetcode]Populating Next Right Pointers in Each Node @ Python [逻辑动力学]

摘要: (坦率的说,这道题目感动了我, 让我这个编程新手体验到了逻辑的美)原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/题意: 1 / \ 2 ... 阅读全文

posted @ 2014-10-01 11:28 AIDasr 阅读(750) 评论(0) 推荐(0) 编辑

[leetcode] Longest Valid Parentheses @python

摘要: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest... 阅读全文

posted @ 2014-10-01 07:20 AIDasr 阅读(464) 评论(0) 推荐(0) 编辑

[leetcode] Valid Parentheses @Python

摘要: https://oj.leetcode.com/problems/valid-parentheses/Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the inp... 阅读全文

posted @ 2014-10-01 00:07 AIDasr 阅读(781) 评论(1) 推荐(0) 编辑

导航