TongTong Shi's Blog
A Playground to Share My Knowledge
Java Thread - Commonly Used Methods - java.lang.Thread Class Java Thread - Commonly Used Methods - java.lang.Thread Class
1. currentThread() – java.lang.Thread The java.lang.Thread.currentThread() method returns a reference to the curren
2019-04-11 Tong Shi
Java Thread II - Lifecycle and States Java Thread II - Lifecycle and States
Lifecycle and States of a Thread in Java (to be continued)This article is taking this great article as a reference. A th
2019-04-11 Tong Shi
Java Thread I - Creation Java Thread I - Creation
MultithreadingMultithreading is a Java feature that allows concurrent execution of two or more parts of a program for ma
2019-04-11 Tong Shi
Valid Perfect Square Valid Perfect Square
LeetCode Q 367 - Valid Perfect SquareGiven a positive integer num, write a function which returns True if num is a perfe
2019-04-11 Tong Shi
Integer Break Integer Break
LeetCode Q 343 - Integer BreakGiven a positive integer n, break it into the sum of at least two positive integers and ma
2019-04-11 Tong Shi
Bulb Switcher Bulb Switcher
LeetCode Q 319 - Bulb SwitcherThere are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn
2019-04-11 Tong Shi
73 / 79