2014年11月21日

摘要: Longest Valid ParenthesesGiven a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses sub... 阅读全文
posted @ 2014-11-21 20:03 Yu's Garden 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: Generate ParenthesesGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a... 阅读全文
posted @ 2014-11-21 18:34 Yu's Garden 阅读(888) 评论(0) 推荐(1) 编辑
摘要: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get... 阅读全文
posted @ 2014-11-21 17:44 Yu's Garden 阅读(2477) 评论(0) 推荐(0) 编辑

导航