TongTong Shi's Blog
A Playground to Share My Knowledge
Cut Off Trees for Golf Event Cut Off Trees for Golf Event
LeetCode Q 675 - Cut Off Trees for Golf EventYou are asked to cut off trees in a forest for a golf event. The forest is
2019-05-01 Tong Shi
Shortest Bridge Shortest Bridge
LeetCode Q 934 - Shortest BridgeIn a given 2D binary array A, there are two islands. (An island is a 4-directionally co
2019-05-01 Tong Shi
01 Matrix 01 Matrix
LeetCode Q 542 - 01 MatrixGiven a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The dista
2019-04-30 Tong Shi
Open the Lock Open the Lock
LeetCode Q 752 - Open the LockYou have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0
2019-04-30 Tong Shi
Word Ladder II Word Ladder II
LeetCode Q 126 - Word Ladder IIGiven two words (beginWord and endWord), and a dictionary’s word list, find all shortest
2019-04-30 Tong Shi
Word Ladder Word Ladder
LeetCode Q 127 - Word LadderGiven two words (beginWord and endWord), and a dictionary’s word list, find the length of sh
2019-04-30 Tong Shi
49 / 79