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

    Posts

    • Leetcode 390: Elimination Game

      Posted on September 3, 2018

      Question There is a list of sorted integers from 1 to n. Starting from left to right, remove the first number and every other number afterward until you reach the end of the list. [Read More]
      Tags:
      • Leetcode
    • Leetcode 389: Find the Difference

      Posted on September 3, 2018

      Question Given two strings s and t which consist of only lowercase letters. [Read More]
      Tags:
      • Leetcode
    • Leetcode 388: Longest Absolute File Path

      Posted on September 1, 2018

      Question Suppose we abstract our file system by a string in the following manner: [Read More]
      Tags:
      • Leetcode
    • Leetcode 387: First Unique Character in a String

      Posted on September 1, 2018

      Question Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1. [Read More]
      Tags:
      • Leetcode
    • Leetcode 386: Lexicographical Numbers

      Posted on September 1, 2018

      Question Given an integer n, return 1 - n in lexicographical order. [Read More]
      Tags:
      • Leetcode
    • Leetcode 385: Mini Parser

      Posted on August 27, 2018

      Question Given a nested list of integers represented as a string, implement a parser to deserialize it. [Read More]
      Tags:
      • Leetcode
    • Leetcode 384: Shuffle an Array

      Posted on August 27, 2018

      Question Shuffle a set of numbers without duplicates. [Read More]
      Tags:
      • Leetcode
    • Leetcode 383: Ransom Note

      Posted on August 27, 2018

      Question Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false. [Read More]
      Tags:
      • Leetcode
    • Leetocde 382: Linked List Random Node

      Posted on August 26, 2018

      Question Given a singly linked list, return a random node’s value from the linked list. Each node must have the same probability of being chosen. [Read More]
      Tags:
      • Leetcode
      • Review
      • ReservoirSampling
    • Leetcode 380: Insert Delete GetRandom O(1)

      Posted on August 26, 2018

      Question Design a data structure that supports all following operations in average O(1) time. [Read More]
      Tags:
      • Leetcode
    • Leetcode 379: Design Phone Directory

      Posted on August 26, 2018

      Question Design a Phone Directory which supports the following operations: [Read More]
      Tags:
      • Leetcode
    • Leetcode 378: Kth Smallest Element in a Sorted Matrix

      Posted on August 26, 2018

      Question Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. [Read More]
      Tags:
      • Leetcode
      • Review
    • 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
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll