TongTong Shi's Blog
A Playground to Share My Knowledge
Factory Method & Abstract Factory Factory Method & Abstract Factory
Part 1: Factory Method1. DefinitionDefinition in Wikipedia is: It is a creational pattern that uses factory methods to
2019-06-19 Tong Shi
Add Binary Add Binary
LeetCode Q 67 - Add BinaryGiven two binary strings, return their sum (also a binary string). The input strings are both
2019-06-19 Tong Shi
Project - Groupbuy App Part I Project - Groupbuy App Part I
Project IntroductionThis project is about designing a groupbuy app. The frontend is built based on Angular. In project t
2019-06-18 Tong Shi
Arithmetic Slices Arithmetic Slices
LeetCode Q 413 - Arithmetic SlicesA sequence of number is called arithmetic if it consists of at least three elements an
2019-06-18 Tong Shi
Greatest Common Divisor of Strings Greatest Common Divisor of Strings
LeetCode Q 1071 - Greatest Common Divisor of StringsFor strings S and T, we say “T divides S” if and only if S = T + … +
2019-06-18 Tong Shi
Largest Values From Labels Largest Values From Labels
LeetCode Q 1090 - Largest Values From LabelsWe have a set of items: the i-th item has value values[i] and label labels[i
2019-06-17 Tong Shi
22 / 79