Solution to Find Minimum in Rotated Sorted Array II by LeetCode

21 Dec

Question: https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/ Question Name: Find Minimum in Rotated Sorted Array II This question is essentially the same as the prevous one.

Solution to Find Minimum in Rotated Sorted Array by LeetCode

20 Oct

Question: https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Question Name: Find Minimum in Rotated Sorted Array

Solution to Maximum Product Subarray by LeetCode

29 Sep

Question: https://oj.leetcode.com/problems/maximum-product-subarray/ Question Name: Maximum Product Subarray The following solution is not the optimal. Because the recursion is not necessary. But recursion does make the coding easier.

Solution to Reverse Words in a String by LeetCode

27 Jul

Question: https://oj.leetcode.com/problems/reverse-words-in-a-string/ Question Name: Reverse Words in a String To solve it with Python, it is as simple as one statement.

But is there a better way? Anyone, who read the excellent book Programming Pearls before, might remember┬áDoug McIlroy’s … Read More »

Solution to Evaluate Reverse Polish Notation by LeetCode

27 Jul

Question: https://oj.leetcode.com/problems/evaluate-reverse-polish-notation/ Question Name: Evaluate Reverse Polish Notation

Solution to Max Points on a Line by LeetCode

27 Jul

Question: https://oj.leetcode.com/problems/max-points-on-a-line/ Question Name: Max Points on a Line

Solution to Sort List by LeetCode

26 Jul

Question: https://oj.leetcode.com/problems/sort-list/ Question Name: Sort List

Solution to Insertion Sort List by LeetCode

24 Jul

Question: https://oj.leetcode.com/problems/insertion-sort-list/ Question Name: Insertion Sort List

Solution to LRU Cache by LeetCode

24 Jul

Question: https://oj.leetcode.com/problems/lru-cache/ Question Name: LRU Cache

Solution to Binary Tree Postorder Traversal by LeetCode

23 Jul

Question: https://oj.leetcode.com/problems/binary-tree-postorder-traversal/ Question Name: Binary Tree Postorder Traversal