LeetCode刷題,每天刷一題,身體健康精神好~
我之後想改變解題模式,我先依照我自己的演算法寫一遍,然後測試看看時間有沒有大於80%,如果沒有就看Discuss或上網找演算法,直到時間大於80%,空間沒有特別限制。
- p001_Two Sum
- p002_Add Two Numbers
- p003_Longest Substring Without Repeating Characters
- p004_Median Of Two Sorted Arrays
- p005_Longest Palindromic Substring
- p006_ZigZag Conversion
- p007_Reverse Integer
- p008_String to Integer (atoi)
- p009_Palindrome Number
- p010_Regular Expression Matching
- p011_Container With Most Water
- p013_Roman to Integer
- p014_Longest Common Prefix
- p015_3Sum
- p017_Letter Combinations of a Phone Number
- p019_Remove Nth Node From End of List
- p020_Valid Parentheses
- p021_Merge Two Sorted Lists
- p022_Generate Parentheses
- p023_Merge k Sorted Lists
- p025_Reverse Nodes in k-Group
- p026_Remove Duplicates from Sorted Array
- p029_Divide Two Integers
- p032_Longest Valid Parentheses
- p033_Search in Rotated Sorted Array
- p034_Find First and Last Position of Element in Sorted Array
- p036_Valid Sudoku
- p041_First Missing Positive
- p042_Trapping Rain Water
- p044_Wildcard Matching
- p046_Permutations
- p048_Rotate Image
- p049_Group Anagrams
- p050_Pow(x, n)
- p054_Spiral Matrix
- p055_Jump Game
- p056_Merge Intervals
- p062_Unique Paths
- p073_Set Matrix Zeroes
- p075_Sort Colors
- p078_Subsets
- p079_Word Search
- p091_Decode Ways
- p098_Validate Binary Search Tree
- p102_Binary Tree Level Order Traversal
- p105_Construct Binary Tree from Preorder and Inorder Traversal
- p116_Populating Next Right Pointers in Each Node
- p128_Longest Consecutive Sequence
- p200_Number of Islands
- p338_Counting Bits
- p407_Trapping Rain Water II
- p546_Remove Boxes
- p564_Find the Closest Palindrome
- p913_Cat and Mouse