Skip to content

Latest commit

 

History

History
246 lines (243 loc) · 10.5 KB

README.md

File metadata and controls

246 lines (243 loc) · 10.5 KB

LeetCode Ans

Currently only write in golang. Will support python, java, etc. in the future.

Status

Problem No. Title Acceptance Difficulty Language
0001 Two Sum 49.50% Easy Golang
0002 Add Two Numbers 40.21% Medium Golang
0003 Longest Substring Without Repeating Characters 33.82% Medium Golang
0004 Median of Two Sorted Arrays 35.94% Hard Golang
0005 Longest Palindromic Substring 32.39% Medium Golang
0006 Zigzag Conversion 44.69% Medium Golang
0007 Reverse Integer 27.38% Medium Golang
0008 String to Integer (atoi) 16.60% Medium Golang
0009 Palindrome Number 53.36% Easy Golang
0011 Container With Most Water 54.09% Medium Golang
0012 Integer to Roman 61.88% Medium Golang
0013 Roman to Integer 58.34% Easy Golang
0014 Longest Common Prefix 40.80% Easy Golang
0015 3Sum 32.48% Medium Golang
0016 3Sum Closest 45.85% Medium Golang
0017 Letter Combinations of a Phone Number 56.29% Medium Golang
0018 4Sum 36.05% Medium Golang
0019 Remove Nth Node From End of List 40.74% Medium Golang
0020 Valid Parentheses 40.34% Easy Golang
0021 Merge Two Sorted Lists 62.36% Easy Golang
0022 Generate Parentheses 72.35% Medium Golang
0023 Merge k Sorted Lists 48.93% Hard Golang
0024 Swap Nodes in Pairs 61.08% Medium Golang
0025 Reverse Nodes in k-Group 54.36% Hard Golang
0026 Remove Duplicates from Sorted Array 51.35% Easy Golang
0027 Remove Element 52.76% Easy Golang
0028 Find the Index of the First Occurrence in a String 38.05% Medium Golang
0031 Next Permutation 37.42% Medium Golang
0033 Search in Rotated Sorted Array 38.90% Medium Golang
0034 Find First and Last Position of Element in Sorted Array 41.78% Medium Golang
0035 Search Insert Position 43.16% Easy Golang
0036 Valid Sudoku 57.96% Medium Golang
0038 Count and Say 51.87% Medium Golang
0039 Combination Sum 68.40% Medium Golang
0040 Combination Sum II 53.39% Medium Golang
0041 First Missing Positive 36.65% Hard Golang
0043 Multiply Strings 39.07% Medium Golang
0045 Jump Game II 39.74% Medium Golang
0046 Permutations 75.46% Medium Golang
0047 Permutations II 57.21% Medium Golang
0048 Rotate Image 70.73% Medium Golang
0049 Group Anagrams 66.67% Medium Golang
0053 Maximum Subarray 50.16% Medium Golang
0054 Spiral Matrix 44.63% Medium Golang
0055 Jump Game 38.90% Medium Golang
0056 Merge Intervals 46.12% Medium Golang
0058 Length of Last Word 42.33% Easy Golang
0062 Unique Paths 62.58% Medium Golang
0064 Minimum Path Sum 61.01% Medium Golang
0066 Plus One 43.62% Easy Golang
0067 Add Binary 52.35% Easy Golang
0070 Climbing Stairs 52.16% Easy Golang
0071 Simplify Path 39.29% Medium Golang
0072 Edit Distance 53.14% Hard Golang
0073 Set Matrix Zeroes 50.90% Medium Golang
0074 Search a 2D Matrix 47.50% Medium Golang
0075 Sort Colors 58.20% Medium Golang
0077 Combinations 66.75% Medium Golang
0078 Subsets 74.65% Medium Golang
0079 Word Search 40.18% Medium Golang
0080 Remove Duplicates from Sorted Array II 52.10% Medium Golang
0082 Remove Duplicates from Sorted List II 45.78% Medium Golang
0085 Maximal Rectangle 44.59% Hard Golang
0088 Merge Sorted Array 46.36% Easy Golang
0089 Gray Code 56.97% Medium Golang
0091 Decode Ways 32.61% Medium Golang
0093 Restore IP Addresses 47.18% Medium Golang
0094 Binary Tree Inorder Traversal 73.60% Easy Golang
0096 Unique Binary Search Trees 59.55% Medium Golang
0097 Interleaving String 37.27% Medium Golang
0098 Validate Binary Search Tree 31.92% Medium Golang
0099 Recover Binary Search Tree 50.80% Medium Golang
0100 Same Tree 57.93% Easy Golang
0101 Symmetric Tree 53.44% Easy Golang
0102 Binary Tree Level Order Traversal 64.05% Medium Golang
0103 Binary Tree Zigzag Level Order Traversal 56.73% Medium Golang
0104 Maximum Depth of Binary Tree 73.79% Easy Golang
0105 Construct Binary Tree from Preorder and Inorder Traversal 61.32% Medium Golang
0106 Construct Binary Tree from Inorder and Postorder Traversal 58.00% Medium Golang
0107 Binary Tree Level Order Traversal II 60.92% Medium Golang
0108 Convert Sorted Array to Binary Search Tree 69.61% Easy Golang
0109 Convert Sorted List to Binary Search Tree 57.81% Medium Golang
0110 Balanced Binary Tree 48.78% Easy Golang
0111 Minimum Depth of Binary Tree 44.20% Easy Golang
0112 Path Sum 48.07% Easy Golang
0113 Path Sum II 56.97% Medium Golang
0114 Flatten Binary Tree to Linked List 61.64% Medium Golang
0116 Populating Next Right Pointers in Each Node 60.16% Medium Golang
0117 Populating Next Right Pointers in Each Node II 50.12% Medium Golang
0118 Pascal's Triangle 70.37% Easy Golang
0119 Pascal's Triangle II 60.47% Easy Golang
0120 Triangle 54.34% Medium Golang
0121 Best Time to Buy and Sell Stock 54.19% Easy Golang
0122 Best Time to Buy and Sell Stock II 63.74% Medium Golang
0124 Binary Tree Maximum Path Sum 39.17% Hard Golang
0125 Valid Palindrome 44.19% Easy Golang
0128 Longest Consecutive Sequence 48.64% Medium Golang
0130 Surrounded Regions 36.54% Medium Golang
0136 Single Number 70.50% Easy Golang
0139 Word Break 45.54% Medium Golang
0141 Linked List Cycle 47.30% Easy Golang
0142 Linked List Cycle II 47.34% Medium Golang
0146 LRU Cache 40.59% Medium Golang
0147 Insertion Sort List 50.78% Medium Golang
0148 Sort List 54.86% Medium Golang
0150 Evaluate Reverse Polish Notation 45.48% Medium Golang
0151 Reverse Words in a String 32.47% Medium Golang
0152 Maximum Product Subarray 34.89% Medium Golang
0155 Min Stack 52.20% Medium Golang
0159 Longest Substring with At Most Two Distinct Characters 53.74% Medium Golang
0160 Intersection of Two Linked Lists 54.05% Easy Golang
0161 One Edit Distance 34.12% Medium Golang
0162 Find Peak Element 46.07% Medium Golang
0168 Excel Sheet Column Title 35.29% Easy Golang
0169 Majority Element 63.93% Easy Golang
0171 Excel Sheet Column Number 61.87% Easy Golang
0173 Binary Search Tree Iterator 69.56% Medium Golang
0187 Repeated DNA Sequences 46.78% Medium Golang
0189 Rotate Array 39.34% Medium Golang
0190 Reverse Bits 53.57% Easy Golang
0191 Number of 1 Bits 66.16% Easy Golang
0198 House Robber 49.33% Medium Golang
0199 Binary Tree Right Side View 61.51% Medium Golang
0200 Number of Islands 56.83% Medium Golang
0202 Happy Number 54.72% Easy Golang
0206 Reverse Linked List 73.27% Easy Golang
0207 Course Schedule 45.36% Medium Golang
0208 Implement Trie (Prefix Tree) 61.54% Medium Golang
0210 Course Schedule II 48.36% Medium Golang
0212 Word Search II 36.54% Hard Golang
0213 House Robber II 40.94% Medium Golang
0215 Kth Largest Element in an Array 66.05% Medium Golang
0217 Contains Duplicate 61.43% Easy Golang
0218 The Skyline Problem 41.77% Hard Golang
0219 Contains Duplicate II 42.48% Easy Golang
0221 Maximal Square 44.85% Medium Golang
0226 Invert Binary Tree 74.50% Easy Golang
0230 Kth Smallest Element in a BST 69.93% Medium Golang
0234 Palindrome Linked List 50.04% Easy Golang
0236 Lowest Common Ancestor of a Binary Tree 58.60% Medium Golang
0238 Product of Array Except Self 65.00% Medium Golang
0239 Sliding Window Maximum 46.39% Hard Golang
0240 Search a 2D Matrix II 50.91% Medium Golang
0279 Perfect Squares 52.63% Medium Golang
0283 Move Zeroes 61.40% Easy Golang
0287 Find the Duplicate Number 59.10% Medium Golang
0295 Find Median from Data Stream 51.46% Hard Golang
0297 Serialize and Deserialize Binary Tree 55.29% Hard Golang
0300 Longest Increasing Subsequence 51.96% Medium Golang
0309 Best Time to Buy and Sell Stock with Cooldown 56.12% Medium Golang
0322 Coin Change 41.91% Medium Golang
0326 Power of Three 45.42% Easy Golang
0328 Odd Even Linked List 61.22% Medium Golang
0333 Largest BST Subtree 42.72% Medium Golang
0334 Increasing Triplet Subsequence 42.72% Medium Golang
0337 House Robber III 53.94% Medium Golang
0338 Counting Bits 75.64% Easy Golang
0345 Reverse Vowels of a String 49.98% Easy Golang
0347 Top K Frequent Elements 64.37% Medium Golang
0371 Sum of Two Integers 50.66% Medium Golang
0378 Kth Smallest Element in a Sorted Matrix 61.75% Medium Golang
0380 Insert Delete GetRandom O(1) 52.81% Medium Golang
0387 First Unique Character in a String 59.41% Easy Golang
0394 Decode String 57.97% Medium Golang
0395 Longest Substring with At Least K Repeating Characters 44.78% Medium Golang
0406 Queue Reconstruction by Height 72.90% Medium Golang
0412 Fizz Buzz 69.68% Easy Golang
0416 Partition Equal Subset Sum 46.35% Medium Golang
0437 Path Sum III 48.16% Medium Golang
0438 Find All Anagrams in a String 50.12% Medium Golang
0448 Find All Numbers Disappeared in an Array 59.89% Easy Golang
0452 Minimum Number of Arrows to Burst Balloons 55.28% Medium Golang
0454 4Sum II 57.23% Medium Golang
0485 Max Consecutive Ones 56.45% Easy Golang
0494 Target Sum 45.63% Medium Golang
0518 Coin Change II 60.35% Medium Golang
0520 Detect Capital 57.08% Easy Golang
0540 Single Element in a Sorted Array 59.17% Medium Golang
0543 Diameter of Binary Tree 56.59% Easy Golang
0560 Subarray Sum Equals K 43.77% Medium Golang
0581 Shortest Unsorted Continuous Subarray 36.41% Medium Golang
0617 Merge Two Binary Trees 78.63% Easy Golang
0621 Task Scheduler 56.21% Medium Golang
0647 Palindromic Substrings 66.72% Medium Golang
0735 Asteroid Collision 44.43% Medium Golang
0739 Daily Temperatures 66.33% Medium Golang
0763 Partition Labels 79.78% Medium Golang
0704 Binary Search 55.36% Easy Golang
0849 Maximize Distance to Closest Person 47.61% Medium Golang
0859 Buddy Strings 29.14% Easy Golang
1035 Uncrossed Lines 59.00% Medium Golang
1376 Time Needed to Inform All Employees 58.35% Medium Golang
1636 Sort Array by Increasing Frequency 69.34% Easy Golang
1637 Widest Vertical Area Between Two Points Containing No Points 84.40% Medium Golang
1669 Merge In Between Linked Lists 74.00% Medium Golang
Date total easy medium hard
19/12/21 2 1 1 0
19/12/24 5 3 2 0
20/01/24 11 6 5 0
20/01/26 12 6 5 1
20/02/01 15 7 7 1
20/02/02 19 8 9 2
20/02/03 20 8 10 2
20/02/04 21 9 10 2
20/02/06 22 9 11 2
20/02/08 26 10 14 2
20/02/09 29 11 16 2
20/02/10 31 11 17 3
20/03/02 37 12 22 3
20/03/09 40 14 23 3
20/03/10 41 15 23 3
20/04/17 44 17 24 3
20/08/08 44 16 25 3
20/08/09 50 17 29 4
20/08/11 51 18 29 4
20/08/24 59 20 34 5
20/08/25 65 22 38 5
20/08/26 67 22 40 5
20/09/05 81 24 52 5
20/09/07 84 24 53 7
20/09/19 88 24 56 8
20/09/19 93 26 59 8
20/12/03 115 33 73 9
20/12/05 127 36 81 10
21/10/31 150 49 91 10
21/10/31 152 50 92 10
21/11/06 159 50 98 11
21/11/07 164 52 101 11
21/11/21 165 52 102 11
21/11/25 171 53 107 11
21/11/26 180 56 113 11
23/02/16 185 54 119 12
23/02/20 192 54 126 12
23/02/21 194 54 128 12
23/02/22 195 54 129 12