Solution to Valid Sudoku by LeetCode

11 May

Question: http://oj.leetcode.com/problems/valid-sudoku/ Question Name: Valid Sudoku An example of bit manipulation.

Solution to Search in Rotated Sorted Array by LeetCode

11 May

Question: http://oj.leetcode.com/problems/search-in-rotated-sorted-array/ Question Name: Search in Rotated Sorted Array

Solution to Search for a Range by LeetCode

11 May

Question: http://oj.leetcode.com/problems/search-for-a-range/ Question Name: Search for a Range

Solution to Longest Valid Parentheses by LeetCode

1 May

Question: http://oj.leetcode.com/problems/longest-valid-parentheses/ Question Name: Longest Valid Parentheses

Solution to Next Permutation by LeetCode

28 Apr

Question: http://oj.leetcode.com/problems/next-permutation/ Question Name: Next Permutation This problem seems like a mathematic question, rather than a programming challenge.

Solution to Implement strStr() by LeetCode

25 Apr

Question: http://oj.leetcode.com/problems/implement-strstr/ Question Name: Implement strStr() The KMP is a much better solution. But as long as brute force passed all tests, let’s use brute force.

Solution to Divide Two Integers by LeetCode

24 Apr

Question: http://oj.leetcode.com/problems/divide-two-integers/ Question Name: Divide Two Integers

Solution to Remove Duplicates from Sorted Array by LeetCode

24 Apr

Question: http://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/ Question Name: Remove Duplicates from Sorted Array

Solution to Remove Element by LeetCode

24 Apr

Question: http://oj.leetcode.com/problems/remove-element/ Question Name: Remove Element