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

    Posts

    • Leetcode 72: Edit Distance

      Posted on August 15, 2018

      Question Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. [Read More]
      Tags:
      • Leetcode
      • Review
      • DP
      • Hard
    • Leetcode 368: Largest Divisible Subset

      Posted on August 13, 2018

      Question Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or Sj % Si = 0. [Read More]
      Tags:
      • Leetcode
      • Review
      • DP
    • Leetcode 367: Valid Perfect Square

      Posted on August 13, 2018

      Question Given a positive integer num, write a function which returns True if num is a perfect square else False. [Read More]
    • Leetcode 366: Find Leaves of Binary Tree

      Posted on August 13, 2018

      Question Given a binary tree, collect a tree’s nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. [Read More]
      Tags:
      • Leetcode
    • Leetcode 365: Water and Jug Problem

      Posted on August 13, 2018

      Question You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to measure exactly z litres using these two jugs. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 364: Nested List Weight Sum II

      Posted on August 13, 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
    • Numpy Cheet Sheet

      Posted on August 12, 2018

      NumPy is the library that gives Python its ability to work with data at speed. Originally, launched in 1995 as ‘Numeric,’ NumPy is the foundation on which many important Python data science libraries are built, including Pandas, SciPy and scikit-learn. [Read More]
      Tags:
      • Finance
    • Pandas Cheet Sheet

      Posted on August 12, 2018

      The Pandas library is one of the most preferred tools for data scientists to do data manipulation and analysis, next to matplotlib for data visualization and NumPy, the fundamental library for scientific computing in Python on which Pandas was built. [Read More]
      Tags:
      • Finance
    • Leetcode 362: Design Hit Counter

      Posted on August 12, 2018

      Question Design a hit counter which counts the number of hits received in the past 5 minutes. [Read More]
      Tags:
      • Leetcode
    • Leetcode 361: Bomb Enemy

      Posted on August 12, 2018

      Question Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill using one bomb. [Read More]
      Tags:
      • Leetcode
    • Leetcode 360: Sort Transformed Array

      Posted on August 12, 2018

      Question Given a sorted array of integers nums and integer values a, b and c. Apply a quadratic function of the form f(x) = ax2 + bx + c to each element x in the array. [Read More]
      Tags:
      • Leetcode
    • Leetcode 357: Count Numbers with Unique Digits

      Posted on August 12, 2018

      Question Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. [Read More]
      Tags:
      • Leetcode
    • Leetcode 356: Line Reflection

      Posted on August 12, 2018

      Question Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 355: Design Twitter

      Posted on August 12, 2018

      Question Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the user’s news feed. Your design should support the following methods: [Read More]
      Tags:
      • Leetcode
    • Leetcode 353: Design Snake Game

      Posted on August 12, 2018

      Question Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. [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