Solution to Gas Station by LeetCode

17 Jul

Question: https://oj.leetcode.com/problems/gas-station/ Question Name: Gas Station

Solution to Clone Graph by LeetCode

17 Jul

Question: https://oj.leetcode.com/problems/clone-graph/ Question Name: Clone Graph

Solution to Palindrome Partitioning II by LeetCode

17 Jul

Question: https://oj.leetcode.com/problems/palindrome-partitioning-ii/ Question Name: Palindrome Partitioning II

Solution to Palindrome Partitioning by LeetCode

15 Jul

Question: https://oj.leetcode.com/problems/palindrome-partitioning/ Question Name: Palindrome Partitioning One simple solution is as following. It is easy to understand. And it passed all the tests.

We could do it better! Do it! Do it better with Manacher’s algorithm! BUT K.I.S.S.

Solution to Surrounded Regions by LeetCode

13 Jul

Question: https://oj.leetcode.com/problems/surrounded-regions/ Question Name: Surrounded Regions

Solution to Sum Root to Leaf Numbers by LeetCode

13 Jul

Question: https://oj.leetcode.com/problems/sum-root-to-leaf-numbers/ Question Name: Sum Root to Leaf Numbers

Solution to Word Ladder II by LeetCode

12 Jul

Question: https://oj.leetcode.com/problems/word-ladder-ii/ Question Name: Word Ladder II

Solution to Word Ladder by LeetCode

12 Jul

Question: https://oj.leetcode.com/problems/word-ladder/ Question Name: Word Ladder

Solution to Valid Palindrome by LeetCode

11 Jul

Question: https://oj.leetcode.com/problems/valid-palindrome/ Question Name: Valid Palindrome