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

    Posts

    • Leetcode 270: Closest Binary Search Tree Value

      Posted on July 28, 2018

      Question Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. [Read More]
      Tags:
      • Leetcode
    • Leetcode 52: N-Queens II

      Posted on July 28, 2018

      Question The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. [Read More]
      Tags:
      • Leetcode
      • Backtracking
      • Hard
    • Leetcode 51: N-Queens

      Posted on July 28, 2018

      Question The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. [Read More]
      Tags:
      • Leetcode
      • Backtracking
      • Hard
      • Review
    • Leetcode 45: Jump Game II

      Posted on July 28, 2018

      Question Given an array of non-negative integers, you are initially positioned at the first index of the array. [Read More]
      Tags:
      • Leetcode
      • Hard
      • Review
    • Leetcode 10: Regular Expression Matching

      Posted on July 28, 2018

      Question Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. [Read More]
      Tags:
      • Leetcode
      • DP
      • Hard
      • Review
    • Leetcode 268: Missing Number

      Posted on July 28, 2018

      Question Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. [Read More]
      Tags:
      • Leetcode
    • Leetcode 266: Palindrome Permutation

      Posted on July 28, 2018

      Question Given a string, determine if a permutation of the string could form a palindrome. [Read More]
      Tags:
      • Leetcode
    • Leetcode 267: Palindrome Permutation II

      Posted on July 28, 2018

      Question Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form. [Read More]
      Tags:
      • Leetcode
    • Leetcode 261: Graph Valid Tree

      Posted on July 28, 2018

      Question Given n nodes labeled from 0 to n-1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make up a valid tree. [Read More]
      Tags:
      • Leetcode
      • DSU
    • Leetcode 259: 3Sum Smaller

      Posted on July 28, 2018

      Question Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + nums[j] + nums[k] < target. [Read More]
      Tags:
      • Leetcode
      • SlidingWindow
      • Review
    • Leetcode 177: Nth Highest Salary

      Posted on July 28, 2018

      Question Write a SQL query to get the \(n^{th}\) highest salary from the Employee table. [Read More]
      Tags:
      • Leetcode
      • SQL
    • Leetcode 176: Second Highest Salary

      Posted on July 28, 2018

      Question Write a SQL query to get the second highest salary from the Employee table. [Read More]
      Tags:
      • Leetcode
      • SQL
    • Leetcode 175: Combine Two Tables

      Posted on July 28, 2018

      Question Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---------+ PersonId is the primary key column for this table. [Read More]
      Tags:
      • Leetcode
      • SQL
    • Leetcode 257: Binary Tree Paths

      Posted on July 26, 2018

      Question Given a binary tree, return all root-to-leaf paths. [Read More]
      Tags:
      • Leetcode
      • Backtracking
    • Leetcode 256: Paint House

      Posted on July 26, 2018

      Question There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain color is different. You have to paint all the houses such that no two adjacent houses have the... [Read More]
      Tags:
      • Leetcode
      • Review
      • DP
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll