240 发简信
IP属地:宾夕法尼亚州
  • Resize,w 360,h 240
    LeetCode 239. Maximum Length of a Concatenated String with Unique Characters

    For this question, we need to consider a case when word A and word B bot...

  • Resize,w 360,h 240
    LeetCode 675. Cut Off Trees for Golf Event

    This problem can be simplified to an n shortest distance problem. We sta...

  • Resize,w 360,h 240
    LeetCode 207. Course Schedule

    This question is actually asking how to check whether a graph has a cycl...

  • Resize,w 360,h 240
    LeetCode 124. Binary Tree Maximum Path Sum

    For each node, there may be several conditions: 1. root.left <0 and root...

  • Resize,w 360,h 240
    LeetCode 25. Reverse Nodes in k-Group

    For this problem, we divide it into 2 parts, reverse LinkedList and conn...

  • Resize,w 360,h 240
    LeetCode 76. Minimum Window Substring

    For this problem, we take use of the sliding window. First we should sea...

  • Resize,w 360,h 240
    LeetCode 273. Integer to English Words

    We divide the number every 4 digits, for each interval, it's xxx hundred...

  • Resize,w 360,h 240
    LeetCode 277. Find the Celebrity

    For this problem, we can scan all the people in one-pass. From people 0,...

  • Resize,w 360,h 240
    LeetCoce 146. LRU Cache

    For LRU cache, it's like a fifo queue but reassign the existing value to...