leetcode解題總匯
專開一欄來記錄leetcode的解題
目前都用c++寫,暫時只記一兩種解法,後面會陸續補全
1 Two Sum
雪之下雪乃:Leetcodes Solution 1 Two Sum2 Add Two Numbers.
雪之下雪乃:Leetcodes Solution 2 Add Two Numbers3 Longest Substring Without Repeating Characters
雪之下雪乃:Leetcodes Solution 3 Longest Substring Without Repeating Characters
4 Median of Two Sorted Arrays
雪之下雪乃:Leetcodes Solutions 4 Median of Two Sorted Arrays5 Longest Palindromic Substring
雪之下雪乃:Leetcodes Solutions 5 Longest Palindromic Substring6 ZigZag Conversion
雪之下雪乃:Leetcodes Solutions 6 ZigZag Conversion7 Reverse Integer
雪之下雪乃:Leetcodes Solutions 7 Reverse Integer8 String to Integer (atoi)
雪之下雪乃:Leetcodes Solutions 8 String to Integer (atoi)9 Palindrome Number
雪之下雪乃:Leetcodes Solutions 9 Palindrome Number10 Regular Expression Matching
雪之下雪乃:Leetcodes Solutions 10 Regular Expression Matching11 Container With Most Water
雪之下雪乃:Leetcodes Solutions 11 Container With Most Water12 Integer to Roman
雪之下雪乃:Leetcodes Solutions 12 Integer to Roman13 Roman to Integer
雪之下雪乃:leetcodes solutions 13 Roman to Integer
14. Longest Common Prefix
雪之下雪乃:Leetcodes Solutions 14. Longest Common Prefix15 3Sum
雪之下雪乃:Leetcodes Solutions 15 3Sum16 3Sum closest
雪之下雪乃:Leetcodes Solutions 16 3Sum closest17 Letter Combinations of a Phone Number
雪之下雪乃:Leetcodes Solutions 17 Letter Combinations of a Phone Number18 4Sum
雪之下雪乃:Leetcodes Solutions 18 4Sum19 Remove Nth Node From End of List
雪之下雪乃:Leetcodes Solutions 19 Remove Nth Node From End of List20 Valid Parentheses
雪之下雪乃:Leetcodes Solutions 20 Valid Parentheses21 Merge Two Sorted Lists
雪之下雪乃:Leetcodes Solutions 21 Merge Two Sorted Lists22 Generate Parentheses
雪之下雪乃:Leetcodes Solutions 22 Generate Parentheses23 Merge k Sorted Lists
雪之下雪乃:Leetcodes Solutions 23 Merge k Sorted Lists
24 Swap Nodes in Pairs
雪之下雪乃:Leetcodes Solutions 24 Swap Nodes in Pairs25 Reverse Nodes in k-Group
雪之下雪乃:Leetcodes Solutions 25 Reverse Nodes in k-Group26 Remove Duplicates from Sorted Array
雪之下雪乃:Leetcodes Solutinos 26 Remove Duplicates from Sorted Array27 Remove Element
雪之下雪乃:Leetcodes Solution 27 Remove Element28 Implement strStr()
雪之下雪乃:Leetcodes Solution 28 Implement strStr()29 Divide Two Integers
雪之下雪乃:Leetcodes Solution 29 Divide Two Integers30 Substring with Concatenation of All Words
雪之下雪乃:Leetcodes Solution 30 Substring with Concatenation of All Words31 Next Permutation
雪之下雪乃:Leetcodes Solution 31 Next Permutation32 Longest Valid Parentheses
雪之下雪乃:Leetcodes Solution 32 Longest Valid Parentheses33 Search in Rotated Sorted Array
雪之下雪乃:Leetcodes Solution 33 Search in Rotated Sorted Array
34 Search for a Range
雪之下雪乃:Leetcodes Solution 34 Search for a Range35 Search Insert Position
雪之下雪乃:Leetcodes Solution 35 Search Insert Position36 Valid Sudoku
雪之下雪乃:Leetcodes Solution 36 Valid Sudoku37 Sudoku Solver
雪之下雪乃:Leetcodes Solution 37 Sudoku Solver38 Count and Say
雪之下雪乃:Leetcodes Solution 38 Count and Say39 Combination Sum
雪之下雪乃:Leetcodes Solution 39 Combination Sum40 Combination Sum II
雪之下雪乃:Leetcodes Solution 40 Combination Sum II41 First Missing Positive
雪之下雪乃:Leetcodes Solution 41 First Missing Positive42 Trapping Rain Water
雪之下雪乃:Leetcodes Solution 42 Trapping Rain Water43 Multiply Strings
雪之下雪乃:Leetcodes Solution 43 Multiply Strings
44 Wildcard Matching
雪之下雪乃:Leetcodes Solution 44 Wildcard Matching45 Jump Game II
雪之下雪乃:Leetcodes Solution 45 Jump Game II46 Permutations
雪之下雪乃:Leetcodes Solution 46 Permutations47 Permutations II
雪之下雪乃:Leetcodes Solutions 47 Permutations II48 Rotate Image
雪之下雪乃:Leetcodes Solutions 48 Rotate Image49 Group Anagrams
雪之下雪乃:Leetcodes Solutions 49 Group Anagrams50 Pow(x, n)
雪之下雪乃:Leetcodes Solutions 50 Pow(x, n)51 N-Queens
雪之下雪乃:Leetcodes Solutions 51 N-Queens52 N-Queens II
雪之下雪乃:Leetcodes Solutions 52 N-Queens II53 Maximum Subarray
雪之下雪乃:Leetcodes Solutions 53 Maximum Subarray54 Spiral Matrix
雪之下雪乃:Leetcodes Solution 54 Spiral Matrix推薦閱讀: