Leetcode - 문제리스트 정렬하는 방법

숲사람·2023년 1월 21일
0

멘타트 훈련

목록 보기
206/237
post-custom-banner

liked/disliked 비율과 like갯수의 조합으로 정렬하면 좋은 문제 순서대로 파악이 가능할것같아서 Leetcode Rest API가 있는지 찾다가 누군가 이미 만들어놓은 기가막힌 스프레드 시트를 발견했다. 매일같이 업데이트 되는 시트이며 여기서 조건 정렬해서 문제를 추출하면 된다.

https://leetcode.com/discuss/general-discussion/1835872/Leetcode-Questions-Sorted-by-likes-and-various-metrics/

Google Doc spreadsheet

개인적으로 좋아요 6000개 이상 받은 문제 중에서 Liked/Disliked Ratio로 정렬하니, 좋은 문제 순서로 정렬이 된듯하다. 그렇게 정렬한 문제 리스트는 아래와 같다.

72 Edit Distance
1143 Longest Common Subsequence
208 Implement Trie (Prefix Tree)
64 Minimum Path Sum
42 Trapping Rain Water
84 Largest Rectangle in Histogram
78 Subsets
226 Invert Binary Tree
329 Longest Increasing Path in a Matrix
213 House Robber II
337 House Robber III
85 Maximal Rectangle
104 Maximum Depth of Binary Tree
240 Search a 2D Matrix II
416 Partition Equal Subset Sum
540 Single Element in a Sorted Array
46 Permutations
206 Reverse Linked List
230 Kth Smallest Element in a BST
518 Coin Change II
47 Permutations II
300 Longest Increasing Subsequence
123 Best Time to Buy and Sell Stock III
295 Find Median from Data Stream
102 Binary Tree Level Order Traversal
198 House Robber
863 All Nodes Distance K in Binary Tree
39 Combination Sum
100 Same Tree
113 Path Sum II
221 Maximal Square
797 All Paths From Source to Target
253 Meeting Rooms II
704 Binary Search
647 Palindromic Substrings
200 Number of Islands
51 N-Queens
695 Max Area of Island
410 Split Array Largest Sum
101 Symmetric Tree
739 Daily Temperatures
322 Coin Change
34 Find First and Last Position of Element in Sorted Array
236 Lowest Common Ancestor of a Binary Tree
40 Combination Sum II
977 Squares of a Sorted Array
283 Move Zeroes
450 Delete Node in a BST
312 Burst Balloons
82 Remove Duplicates from Sorted List II
103 Binary Tree Zigzag Level Order Traversal
144 Binary Tree Preorder Traversal
37 Sudoku Solver
315 Count of Smaller Numbers After Self
503 Next Greater Element II
209 Minimum Size Subarray Sum
90 Subsets II
876 Middle of the Linked List
235 Lowest Common Ancestor of a Binary Search Tree
62 Unique Paths
105 Construct Binary Tree from Preorder and Inorder Traversal
74 Search a 2D Matrix
560 Subarray Sum Equals K
203 Remove Linked List Elements
49 Group Anagrams
152 Maximum Product Subarray
70 Climbing Stairs
148 Sort List
438 Find All Anagrams in a String
121 Best Time to Buy and Sell Stock
169 Majority Element
32 Longest Valid Parentheses
242 Valid Anagram
239 Sliding Window Maximum
188 Best Time to Buy and Sell Stock IV
131 Palindrome Partitioning
1 Two Sum
567 Permutation in String
99 Recover Binary Search Tree
118 Pascal's Triangle
210 Course Schedule II
116 Populating Next Right Pointers in Each Node
387 First Unique Character in a String
309 Best Time to Buy and Sell Stock with Cooldown
581 Shortest Unsorted Continuous Subarray
56 Merge Intervals
143 Reorder List
994 Rotting Oranges
45 Jump Game II
617 Merge Two Binary Trees
83 Remove Duplicates from Sorted List
378 Kth Smallest Element in a Sorted Matrix
494 Target Sum
451 Sort Characters By Frequency
75 Sort Colors
297 Serialize and Deserialize Binary Tree
347 Top K Frequent Elements
973 K Closest Points to Origin
442 Find All Duplicates in an Array
763 Partition Labels
23 Merge k Sorted Lists
136 Single Number
207 Course Schedule
24 Swap Nodes in Pairs
22 Generate Parentheses
525 Contiguous Array
424 Longest Repeating Character Replacement
96 Unique Binary Search Trees
516 Longest Palindromic Subsequence
79 Word Search
547 Number of Provinces
19 Remove Nth Node From End of List
128 Longest Consecutive Sequence
402 Remove K Digits
44 Wildcard Matching
139 Word Break
310 Minimum Height Trees
334 Increasing Triplet Subsequence
76 Minimum Window Substring
3 Longest Substring Without Repeating Characters
279 Perfect Squares
146 LRU Cache
53 Maximum Subarray
394 Decode String
92 Reverse Linked List II
787 Cheapest Flights Within K Stops
48 Rotate Image
35 Search Insert Position
212 Word Search II
124 Binary Tree Maximum Path Sum
692 Top K Frequent Words
338 Counting Bits
153 Find Minimum in Rotated Sorted Array
437 Path Sum III
94 Binary Tree Inorder Traversal
542 01 Matrix
229 Majority Element II
785 Is Graph Bipartite?
215 Kth Largest Element in an Array
114 Flatten Binary Tree to Linked List
108 Convert Sorted Array to Binary Search Tree
380 Insert Delete GetRandom O(1)
55 Jump Game
680 Valid Palindrome II
11 Container With Most Water
740 Delete and Earn
448 Find All Numbers Disappeared in an Array
16 3Sum Closest
25 Reverse Nodes in k-Group
20 Valid Parentheses
238 Product of Array Except Self
234 Palindrome Linked List
222 Count Complete Tree Nodes
110 Balanced Binary Tree
328 Odd Even Linked List
572 Subtree of Another Tree
13 Roman to Integer
392 Is Subsequence
73 Set Matrix Zeroes
17 Letter Combinations of a Phone Number
5 Longest Palindromic Substring
199 Binary Tree Right Side View
173 Binary Search Tree Iterator
33 Search in Rotated Sorted Array
120 Triangle
97 Interleaving String
543 Diameter of Binary Tree
316 Remove Duplicate Letters
63 Unique Paths II
155 Min Stack
57 Insert Interval
698 Partition to K Equal Sum Subsets
142 Linked List Cycle II
658 Find K Closest Elements
98 Validate Binary Search Tree
179 Largest Number
134 Gas Station
141 Linked List Cycle
399 Evaluate Division
21 Merge Two Sorted Lists
160 Intersection of Two Linked Lists
15 3Sum
88 Merge Sorted Array
54 Spiral Matrix
733 Flood Fill
406 Queue Reconstruction by Height
67 Add Binary
724 Find Pivot Index
138 Copy List with Random Pointer
36 Valid Sudoku
4 Median of Two Sorted Arrays
18 4Sum
112 Path Sum
189 Rotate Array
41 First Missing Positive
202 Happy Number
167 Two Sum II - Input Array Is Sorted
217 Contains Duplicate
662 Maximum Width of Binary Tree
287 Find the Duplicate Number
344 Reverse String
746 Min Cost Climbing Stairs
10 Regular Expression Matching
127 Word Ladder
61 Rotate List
417 Pacific Atlantic Water Flow
204 Count Primes
2 Add Two Numbers
621 Task Scheduler
130 Surrounded Regions
122 Best Time to Buy and Sell Stock II
31 Next Permutation
9 Palindrome Number
14 Longest Common Prefix
268 Missing Number
278 First Bad Version
133 Clone Graph
91 Decode Ways
162 Find Peak Element

profile
기록 & 정리 아카이브용
post-custom-banner

0개의 댓글