TongTong Shi's Blog
A Playground to Share My Knowledge
Shortest Path in Binary Matrix Shortest Path in Binary Matrix
LeetCode Q 1091 - Shortest Path in Binary MatrixIn an N by N square grid, each cell is either empty (0) or blocked (1).
2019-06-17 Tong Shi
Duplicate Zeros Duplicate Zeros
LeetCode Q 1089 - Duplicate ZerosGiven a fixed length array arr of integers, duplicate each occurrence of zero, shifting
2019-06-17 Tong Shi
Asteroid Collision Asteroid Collision
LeetCode Q 735 - Asteroid CollisionWe are given an array asteroids of integers representing asteroids in a row. For eac
2019-06-15 Tong Shi
Score of Parentheses Score of Parentheses
LeetCode Q 856 - Score of ParenthesesGiven a balanced parentheses string S, compute the score of the string based on the
2019-06-15 Tong Shi
Decoded String at Index Decoded String at Index
LeetCode Q 880 - Decoded String at IndexAn encoded string S is given. To find and write the decoded string to a tape, t
2019-06-15 Tong Shi
Daily Temperatures Daily Temperatures
LeetCode Q 739 - Daily TemperaturesGiven a list of daily temperatures T, return a list such that, for each day in the in
2019-06-15 Tong Shi
23 / 79