LeetCode
:pencil2: LeetCode solutions in C++ 11 and Python3
Install / Use
/learn @pezy/LeetCodeREADME
LeetCode
LeetCode solutions in C++ 11 and Python3.
|NO.|Title|Solution|Note|Difficulty|Tag|
|---|-----|--------|----|----------|---|
|0|Two Sum|C++ Python|Note|Easy|Mapping|
|1|Add Two Numbers|C++ Python|Note|Medium|LinkedList|
|2|Longest Substring Without Repeating Characters|C++ Python|Note|Medium|Mapping|
|3|Median of Two Sorted Arrays|C++ Python|Note|Hard|
|4|Longest Palindromic Substring|C++ Python|Note|Medium|
|5|ZigZag Conversion|C++ Python|Note|Medium|
|6|Reverse Integer|C++ Python|Note|Easy|
|7|String to Integer (atoi)|C++ Python|Note|Medium|
|8|Palindrome Number|C++ Python|Note|Easy|
|9|Regular Expression Matching|C++ Python|Note|Hard|
|10|Container With Most Water|C++ Python|Note|Medium|
|11|Integer to Roman|C++ Python|Note|Medium|
|12|Roman to Integer|C++ Python|Note|Easy|
|13|Longest Common Prefix|C++ Python|Note|Easy|
|14|3Sum|C++ Python|Note|Medium|
|15|3Sum Closest|C++ Python|Note|Medium|
|16|Letter Combinations of a Phone Number|C++ Python|Note|Medium|
|17|4Sum|C++ Python|Note|Medium|
|18|Remove Nth Node From End of List|C++ Python|Note|Medium|
|19|Valid Parentheses|C++ Python|Note|Easy|
|20|Merge Two Sorted Lists|C++ Python|Note|Easy|
|21|Generate Parentheses|C++ Python|Note|Medium|
|22|Merge k Sorted Lists|C++ Python|Note|Hard|
|23|Swap Nodes in Pairs|C++ Python|Note|Medium|
|24|Reverse Nodes in k-Group|C++ Python|Note|Hard|
|25|Remove Duplicates from Sorted Array|C++ Python|Note|Easy|
|26|Remove Element|C++ Python|Note|Easy|
|27|Implement strStr()|C++ Python|Note|Easy|
|28|Divide Two Integers|C++ Python|Note|Medium|
|29|Substring with Concatenation of All Words|C++ Python|Note|Hard|
|30|Next Permutation|C++ Python|Note|Medium|
|31|Longest Valid Parentheses|C++ Python|Note|Hard|
|32|Search in Rotated Sorted Array|C++ Python|Note|Medium|
|33|Search for a Range|C++ Python|Note|Medium|
|34|Search Insert Position|C++ Python|Note|Easy|
|35|Valid Sudoku|C++ Python|Note|Medium|
|36|Sudoku Solver|C++ Python|Note|Hard|
|37|Count and Say|C++ Python|Note|Easy|
|38|Combination Sum|C++ Python|Note|Medium|
|39|Combination Sum II|C++ Python|Note|Medium|
|40|First Missing Positive|C++ Python|Note|Hard|
|41|Trapping Rain Water|C++ Python|[Note](041.
