1
1
LeetCode
2
2
========
3
3
4
- Up to date (2014-12-18 ), there are total ` 167 ` problems on [ LeetCode Online Judge] ( https://oj.leetcode.com/ ) .
4
+ Up to date (2014-12-21 ), there are total ` 169 ` problems on [ LeetCode Online Judge] ( https://oj.leetcode.com/ ) .
5
5
The number of problems is increasing recently.
6
- Here is the classification of all ` 167 ` problems.
6
+ Here is the classification of all ` 169 ` problems.
7
7
I'll keep updating for full summary and better solutions. Stay tuned for updates.
8
8
9
9
---
@@ -53,6 +53,7 @@ Problem | Solution | Time | Space | Difficul
53
53
[ Best Time to Buy and Sell Stock] | [ best-time-to-buy-and-sell-stock.py] | _ O(n)_ | _ O(1)_ | Medium |
54
54
[ First Missing Positive] | [ first-missing-positive.py] | _ O(n)_ | _ O(1)_ | Hard | Tricky
55
55
[ Longest Consecutive Sequence] | [ longest-consecutive-sequence.py] | _ O(n)_ | _ O(n)_ | Hard | Tricky
56
+ [ Majority Element] | [ majority-element.py] | _ O(n)_ | _ O(1)_ | Easy |
56
57
[ Missing Ranges] | [ missing-ranges.py] | _ O(n)_ | _ O(1)_ | Medium |
57
58
[ Next Permutation] | [ next-permutation.py] | _ O(n)_ | _ O(1)_ | Medium | Tricky
58
59
[ Pascal's Triangle] | [ pascals-triangle.py] | _ O(n^2)_ | _ O(n)_ | Easy |
@@ -79,6 +80,8 @@ Problem | Solution | Time | Space | Difficul
79
80
[ first-missing-positive.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/first-missing-positive.py
80
81
[ Longest Consecutive Sequence ] :https://oj.leetcode.com/problems/longest-consecutive-sequence/
81
82
[ longest-consecutive-sequence.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/longest-consecutive-sequence.py
83
+ [ Majority Element ] : https://oj.leetcode.com/problems/majority-element/
84
+ [ majority-element.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/majority-element.py
82
85
[ Missing Ranges ] :https://oj.leetcode.com/problems/missing-ranges/
83
86
[ missing-ranges.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/missing-ranges.py
84
87
[ Next Permutation ] :https://oj.leetcode.com/problems/next-permutation/
@@ -298,6 +301,7 @@ Problem | Solution | Time | Space | Difficul
298
301
Problem | Solution | Time | Space | Difficulty | Notes
299
302
--------------- | --------------- | --------------- | --------------- | -------------- | -----
300
303
[ Divide Two Integers] | [ divide-two-integers.py] | _ O(logn)_ | _ O(1)_ | Medium |
304
+ [ Excel Sheet Column Title] | [ excel-sheet-column-title.py] | _ O(logn)_ | _ O(1)_ | Easy |
301
305
[ Fraction to Recurring Decimal] | [ fraction-to-recurring-decimal.py] | _ O(logn)_ | _ O(1)_ | Medium |
302
306
[ Gray Code] | [ gray-code.py] | _ O(2^n)_ | _ O(1)_ | Medium |
303
307
[ Integer to Roman] | [ integer-to-roman.py] | _ O(n)_ | _ O(1)_ | Medium |
@@ -309,6 +313,8 @@ Problem | Solution | Time | Space | Difficul
309
313
310
314
[ Divide Two Integers ] :https://oj.leetcode.com/problems/divide-two-integers/
311
315
[ divide-two-integers.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/divide-two-integers.py
316
+ [ Excel Sheet Column Title ] :https://oj.leetcode.com/problems/excel-sheet-column-title/
317
+ [ excel-sheet-column-title.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/excel-sheet-column-title.py
312
318
[ Fraction to Recurring Decimal ] :https://oj.leetcode.com/problems/fraction-to-recurring-decimal/
313
319
[ fraction-to-recurring-decimal.py ] :https://github.com/kamyu104/LeetCode/blob/master/Python/fraction-to-recurring-decimal.py
314
320
[ Gray Code ] :https://oj.leetcode.com/problems/gray-code/
0 commit comments