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

    Posts

    • Leetcode 349: Intersection of Two Arrays

      Posted on August 9, 2018

      Question Given two arrays, write a function to compute their intersection. [Read More]
      Tags:
      • Leetcode
    • Leetcode 346: Moving Average from Data Stream

      Posted on August 9, 2018

      Question Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. [Read More]
      Tags:
      • Leetcode
    • Leetcode 339: Nested List Weight Sum

      Posted on August 9, 2018

      Question Given a nested list of integers, return the sum of all integers in the list weighted by their depth. [Read More]
      Tags:
      • Leetcode
    • Segment Tree

      Posted on August 8, 2018

      A segment tree is a binary tree where each node represents an interval. Generally a node would store one or more properties of an interval which can be queried later. [Read More]
      Tags:
      • Algorithm
    • Leetcode 307: Range Sum Query - Mutable

      Posted on August 8, 2018

      Question Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 306: Additive Number

      Posted on August 8, 2018

      Question Additive number is a string whose digits can form additive sequence. [Read More]
      Tags:
      • Leetcode
      • Backtracking
    • Leetcode 311: Sparse Matrix Multiplication

      Posted on August 2, 2018

      Question Given two sparse matrices A and B, return the result of AB. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 305: Number of Islands II

      Posted on August 2, 2018

      Question A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An... [Read More]
      Tags:
      • Leetcode
      • Hard
      • DSU
    • Leetcode 304: Range Sum Query 2D - Immutable

      Posted on August 2, 2018

      Question Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). [Read More]
      Tags:
      • Leetcode
    • Leetcode 290: Word Pattern

      Posted on August 2, 2018

      Question Given a pattern and a string str, find if str follows the same pattern. [Read More]
      Tags:
      • Leetcode
    • Leetcode 303: Range Sum Query - Immutable

      Posted on August 1, 2018

      Question Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. [Read More]
      Tags:
      • Leetcode
    • Leetcode 300: Longest Increasing Subsequence

      Posted on August 1, 2018

      Question Given an unsorted array of integers, find the length of longest increasing subsequence. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 299: Bulls and Cows

      Posted on August 1, 2018

      Question You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint that indicates how many digits in said guess match your secret... [Read More]
      Tags:
      • Leetcode
    • Leetcode 298: Binary Tree Longest Consecutive Sequence

      Posted on August 1, 2018

      Question [Read More]
      Tags:
      • Leetcode
    • Leetcode 296: Best Meeting Point

      Posted on August 1, 2018

      Question A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks the home of someone in the group. The distance is calculated using Manhattan Distance, where distance (p1, p2)... [Read More]
      Tags:
      • Leetcode
      • Hard
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll