My notes on leetcode

Tuesday, June 3, 2014

水中的鱼: [LeetCode] LRU Cache, Solution

水中的鱼: [LeetCode] LRU Cache, Solution: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set . get(ke...
Posted by Good at 6:34 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, June 1, 2014

Code Ganker: Regular Expression Matching -- LeetCode

Code Ganker: Regular Expression Matching -- LeetCode: 原题链接: http://oj.leetcode.com/problems/regular-expression-matching/ 这个题目比较常见,但是难度还是比较大的。我们先来看看brute force怎么解决。基本思路就是先看字符串s和p的从i和j开始的子串是否匹配,...
Posted by Good at 8:00 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

Labels

backtracking bfs binary search concept dfs dp graph interval interview kmp math merge string system tree trie two pointers

About Me

Good
View my complete profile

Blog Archive

  • ►  2019 (8)
    • ►  June (5)
    • ►  May (3)
  • ►  2016 (1)
    • ►  March (1)
  • ►  2015 (22)
    • ►  June (4)
    • ►  April (5)
    • ►  March (4)
    • ►  February (5)
    • ►  January (4)
  • ▼  2014 (202)
    • ►  December (35)
    • ►  November (64)
    • ►  October (73)
    • ►  September (28)
    • ▼  June (2)
      • 水中的鱼: [LeetCode] LRU Cache, Solution
      • Code Ganker: Regular Expression Matching -- LeetCode
Simple theme. Powered by Blogger.