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

    Posts

    • Leetcode 224: Basic Calculator

      Posted on July 9, 2018

      Question Implement a basic calculator to evaluate a simple expression string. [Read More]
      Tags:
      • Leetcode
    • Leetcode 230: Kth Smallest Element in a BST

      Posted on July 8, 2018

      Question Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. [Read More]
      Tags:
      • Leetcode
    • Leetcode 836: Rectangle Overlap

      Posted on July 8, 2018

      Question A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates of its top-right corner. [Read More]
      Tags:
      • Leetcode
    • Leetcode 223: Rectangle Area

      Posted on July 8, 2018

      Question Find the total area covered by two rectilinear rectangles in a 2D plane. [Read More]
      Tags:
      • Leetcode
    • Leetcode 222: Count Complete Tree Nodes

      Posted on July 8, 2018

      Question Given a complete binary tree, count the number of nodes. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 245: Shortest Word Distance III

      Posted on July 8, 2018

      Question Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. [Read More]
      Tags:
      • Leetcode
    • Leetcode 244: Shortest Word Distance II

      Posted on July 8, 2018

      Question Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters. [Read More]
      Tags:
      • Leetcode
    • Leetcode 243: Shortest Word Distance

      Posted on July 8, 2018

      Question [Read More]
      Tags:
      • Leetcode
    • Leetcode 264: Ugly Number II

      Posted on July 7, 2018

      Question Write a program to find the n-th ugly number. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 263: Ugly Number

      Posted on July 7, 2018

      Question Write a program to check whether a given number is an ugly number. [Read More]
      Tags:
      • Leetcode
    • Leetcode 342: Power of Four

      Posted on July 7, 2018

      Question Given an integer (signed 32 bits), write a function to check whether it is a power of 4. [Read More]
      Tags:
      • Leetcode
    • Leetcode 326: Power of Three

      Posted on July 7, 2018

      Question Given an integer, write a function to determine if it is a power of three. [Read More]
      Tags:
      • Leetcode
    • Leetcode 231: Power of Two

      Posted on July 7, 2018

      Question Given an integer, write a function to determine if it is a power of two. [Read More]
      Tags:
      • Leetcode
    • Leetcode 221: Maximal Square

      Posted on July 7, 2018

      Question Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area. [Read More]
      Tags:
      • Leetcode
      • DP
      • Review
    • Leetcode 232: Implement Queue using Stacks

      Posted on July 6, 2018

      Question Implement the following operations of a queue using stacks. [Read More]
      Tags:
      • Leetcode
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll