TongTong Shi's Blog
A Playground to Share My Knowledge
Flood Fill Flood Fill
LeetCode Q 733 - Flood FillAn image is represented by a 2-D array of integers, each integer representing the pixel value
2019-05-04 Tong Shi
Number of Islands Number of Islands
LeetCode Q 200 - Number of IslandsGiven a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An i
2019-05-04 Tong Shi
Find Eventual Safe States Find Eventual Safe States
LeetCode Q 802 - Find Eventual Safe StatesIn a directed graph, we start at some node and every turn, walk along a direct
2019-05-03 Tong Shi
Course Schedule II Course Schedule II
LeetCode Q 210 - Course Schedule IIThere are a total of n courses you have to take, labeled from 0 to n-1.Some courses m
2019-05-03 Tong Shi
Course Schedule Course Schedule
LeetCode Q 207 - Course ScheduleThere are a total of n courses you have to take, labeled from 0 to n-1.Some courses may
2019-05-03 Tong Shi
Is Graph Bipartite? Is Graph Bipartite?
LeetCode Q 785 - Is Graph Bipartite?Given an undirected graph, return true if and only if it is bipartite.Recall that a
2019-05-02 Tong Shi
47 / 79