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

    Posts

    • Java Operator Precedence

      Posted on September 3, 2018

      postfix _expr_++ _expr_-- unary ++_expr_ --_expr_ +_expr_ -_expr_ ~ ! multiplicative * / % additive + - shift << >> >>> relational < > <= >= instanceof equality == != bitwise AND & bitwise exclusive OR ^ bitwise inclusive OR | logical AND && logical OR || ternary ? :... [Read More]
      Tags:
      • Java
    • Leetcode 393: UTF-8 Validation

      Posted on September 3, 2018

      Question A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: [Read More]
      Tags:
      • Leetcode
    • Leetcode 392: Is Subsequence

      Posted on September 3, 2018

      Question Given a string s and a string t, check if s is subsequence of t. [Read More]
      Tags:
      • Leetcode
    • 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
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

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

    Powered by Beautiful Jekyll