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

    Posts

    • Leetcode 401: Binary Watch

      Posted on September 9, 2018

      Question A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). [Read More]
      Tags:
      • Leetcode
    • Java JVM

      Posted on September 9, 2018

      JVM is a engine that provides runtime environment to drive the Java Code or applications. It converts Java bytecode into machines language. JVM is a part of JRE (Java Run Environment). It stands for Java Virtual Machine. [Read More]
      Tags:
      • Java
    • Java GC

      Posted on September 9, 2018

      In C/C++, programmer is responsible for both creation and destruction of objects. Usually programmer neglects destruction of useless objects. Due to this negligence, at certain point, for creation of new objects, sufficient memory may not be available and entire program will terminate abnormally causing OutOfMemoryErrors. But in Java, the programmer... [Read More]
      Tags:
      • Java
    • Leetcode 404: Sum of Left Leaves

      Posted on September 8, 2018

      Question Find the sum of all left leaves in a given binary tree. [Read More]
      Tags:
      • Leetcode
    • Leetcode 400: Nth Digit

      Posted on September 8, 2018

      Question Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, … [Read More]
      Tags:
      • Leetcode
    • Python Notes: Closures

      Posted on September 8, 2018

      You can build dynamic functions with a nested function by passing different parameters into it. This technique of using the values of outside parameters within a dynamic function is called closures. For example, [Read More]
      Tags:
      • Python
    • Python Notes: Variable Visibility

      Posted on September 8, 2018

      Global Variable In Python, a variable declared outside of the function or in global scope is known as global variable. This means, global variable can be accessed (read) inside or outside of the function. [Read More]
      Tags:
      • Python
    • Python Notes: Decorators

      Posted on September 7, 2018

      Decorator can add additional functionality to existing functions. It takes a function and returns a new function: [Read More]
      Tags:
      • Python
    • Python Notes: HTTP Requests

      Posted on September 7, 2018

      Simple HTTP Request For really simple HTTP client code, using the built-in urllib module is usually fine. [Read More]
      Tags:
      • Python
    • Leetcode 399: Evaluate Division

      Posted on September 4, 2018

      Question Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer does not exist, return -1.0. [Read More]
      Tags:
      • Leetcode
    • Leetcode 398: Random Pick Index

      Posted on September 4, 2018

      Question Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array. [Read More]
      Tags:
      • Leetcode
      • ReservoirSampling
    • Leetcode 397: Integer Replacement

      Posted on September 4, 2018

      Question Given a positive integer n and you can do operations as follow: [Read More]
      Tags:
      • Leetcode
    • Leetcode 396: Rotate Function

      Posted on September 4, 2018

      Question Given an array of integers A and let n to be its length. [Read More]
      Tags:
      • Leetcode
    • Leetcode 395: Longest Substring with At Least K Repeating Characters

      Posted on September 3, 2018

      Question Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than k times. [Read More]
      Tags:
      • Leetcode
    • Leetcode 394: Decode String

      Posted on September 3, 2018

      Question Given an encoded string, return it’s decoded string. [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