Baihu Qian 钱柏湖
  • Posts
  • Tag Index
  • Search
Navigation bar avatar
✕

    Posts

    • Leetcode 155: Min Stack

      Posted on June 24, 2018

      Question Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. [Read More]
      Tags:
      • Leetcode
    • Leetcode 145: Binary Tree Postorder Traversal

      Posted on June 24, 2018

      Question Given a binary tree, return the postorder traversal of its nodes’ values. [Read More]
      Tags:
      • Leetcode
    • Leetcode 144: Binary Tree Preorder Traversal

      Posted on June 24, 2018

      Question Given a binary tree, return the preorder traversal of its nodes’ values. [Read More]
      Tags:
      • Leetcode
    • Leetcode 143: Reorder List

      Posted on June 24, 2018

      Question Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… [Read More]
      Tags:
      • Leetcode
    • Leetcode 142: Linked List Cycle II

      Posted on June 24, 2018

      Question Given a linked list, return the node where the cycle begins. If there is no cycle, return null. [Read More]
      Tags:
      • Leetcode
      • Hard
      • Review
    • Leetcode 141: Linked List Cycle

      Posted on June 24, 2018

      Question Given a linked list, determine if it has a cycle in it. [Read More]
      Tags:
      • Leetcode
    • Leetcode 140: Word Break II

      Posted on June 24, 2018

      Question Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. [Read More]
      Tags:
      • Leetcode
      • DP
      • Backtracking
    • Leetcode 139: Word Break

      Posted on June 24, 2018

      Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. [Read More]
      Tags:
      • Leetcode
      • DP
    • Leetcode 138: Copy List with Random Pointer

      Posted on June 24, 2018

      Question A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. [Read More]
      Tags:
      • Leetcode
    • Leetcode 260: Single Number III

      Posted on June 24, 2018

      Question Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. [Read More]
      Tags:
      • Leetcode
    • Leetcode 137: Single Number II

      Posted on June 23, 2018

      Question Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. [Read More]
      Tags:
      • Leetcode
      • StateMachine
    • Leetcode 134: Gas Station

      Posted on June 23, 2018

      There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. [Read More]
      Tags:
      • Leetcode
      • Hard
      • Review
    • Leetcode 133: Clone Graph

      Posted on June 23, 2018

      Question Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. [Read More]
      Tags:
      • Leetcode
    • Leetcode 132: Palindrome Partitioning II

      Posted on June 21, 2018

      Question Given a string s, partition s such that every substring of the partition is a palindrome. [Read More]
      Tags:
      • Leetcode
      • DP
      • Hard
      • Review
    • Leetcode 131: Palindrome Partitioning

      Posted on June 21, 2018

      Question Given a string s, partition s such that every substring of the partition is a palindrome. [Read More]
      Tags:
      • Leetcode
      • Backtracking
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

    Baihu Qian  •  2025  •  baihuqian.github.io  •  Edit page

    Powered by Beautiful Jekyll