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

    Posts

    • Java 8 Stream

      Posted on August 23, 2018

      Before we look into Java Stream API Examples, let’s see why it was required. Suppose we want to iterate over a list of integers and find out sum of all the integers greater than 10. [Read More]
      Tags:
      • Java
    • Leetcode 377: Combination Sum IV

      Posted on August 21, 2018

      Question Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. [Read More]
      Tags:
      • Leetcode
    • Leetcode 376: Wiggle Subsequence

      Posted on August 21, 2018

      Question A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative. A sequence with fewer than two elements is trivially a wiggle sequence. [Read More]
      Tags:
      • Leetcode
    • Leetcode 375: Guess Number Higher or Lower II

      Posted on August 21, 2018

      Question We are playing the Guess Game. The game is as follows: [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 374: Guess Number Higher or Lower

      Posted on August 21, 2018

      Question We are playing the Guess Game. The game is as follows: [Read More]
      Tags:
      • Leetcode
    • Leetcode 373: Find K Pairs with Smallest Sums

      Posted on August 20, 2018

      Question You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 372: Super Pow

      Posted on August 20, 2018

      Question Your task is to calculate a^b mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 371: Sum of Two Integers

      Posted on August 18, 2018

      Question Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. [Read More]
    • Leetcode 370: Range Addition

      Posted on August 16, 2018

      Question Assume you have an array of length n initialized with all 0’s and are given k update operations. [Read More]
      Tags:
      • Leetcode
      • Review
    • Leetcode 369: Plus One Linked List

      Posted on August 16, 2018

      Question Given a non-negative integer represented as non-empty a singly linked list of digits, plus one to the integer. [Read More]
      Tags:
      • Leetcode
    • Leetcode 97: Interleaving String

      Posted on August 16, 2018

      Question Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. [Read More]
      Tags:
      • Leetcode
      • Hard
      • DP
      • Review
    • Leetcode 87: Scramble String

      Posted on August 16, 2018

      Question Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. [Read More]
      Tags:
      • Leetcode
      • Hard
    • Leetcode 85: Maximal Rectangle

      Posted on August 16, 2018

      Question Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area. [Read More]
      Tags:
      • Leetcode
      • Review
      • Hard
    • Leetcode 84: Largest Rectangle in Histogram

      Posted on August 15, 2018

      Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. [Read More]
      Tags:
      • Leetcode
      • Review
      • Hard
    • Leetcode 76: Minimum Window Substring

      Posted on August 15, 2018

      Question Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). [Read More]
      Tags:
      • Leetcode
      • Review
      • SlidingWindow
      • Hard
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll