Skip to content

Commit 4fb7510

Browse files
committed
feat: add grind.py and neetcode_250.py
1 parent 1447288 commit 4fb7510

3 files changed

Lines changed: 436 additions & 1 deletion

File tree

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
from . import algo_master_75, blind_75, neetcode_150
1+
from . import (
2+
algo_master_75,
3+
blind_75,
4+
grind,
5+
neetcode_150,
6+
neetcode_250,
7+
)
28

39
available_lists = {
410
neetcode_150.tag_name: neetcode_150.problems_list,
511
algo_master_75.tag_name: algo_master_75.problems_list,
612
blind_75.tag_name: blind_75.problem_list,
13+
grind.tag_name: grind.problems_list,
14+
neetcode_250.tag_name: neetcode_250.problems_list,
715
}
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
tag_name = "grind"
2+
3+
problems_list = [
4+
(1, "Two Sum"),
5+
(20, "Valid Parentheses"),
6+
(21, "Merge Two Sorted Lists"),
7+
(121, "Best Time to Buy and Sell Stock"),
8+
(125, "Valid Palindrome"),
9+
(226, "Invert Binary Tree"),
10+
(242, "Valid Anagram"),
11+
(704, "Binary Search"),
12+
(733, "Flood Fill"),
13+
(235, "Lowest Common Ancestor of a Binary Search Tree"),
14+
(110, "Balanced Binary Tree"),
15+
(141, "Linked List Cycle"),
16+
(232, "Implement Queue using Stacks"),
17+
(278, "First Bad Version"),
18+
(383, "Ransom Note"),
19+
(70, "Climbing Stairs"),
20+
(409, "Longest Palindrome"),
21+
(206, "Reverse Linked List"),
22+
(169, "Majority Element"),
23+
(67, "Add Binary"),
24+
(543, "Diameter of Binary Tree"),
25+
(876, "Middle of the Linked List"),
26+
(104, "Maximum Depth of Binary Tree"),
27+
(217, "Contains Duplicate"),
28+
(252, "Meeting Rooms"),
29+
(13, "Roman to Integer"),
30+
(844, "Backspace String Compare"),
31+
(338, "Counting Bits"),
32+
(100, "Same Tree"),
33+
(191, "Number of 1 Bits"),
34+
(14, "Longest Common Prefix"),
35+
(136, "Single Number"),
36+
(234, "Palindrome Linked List"),
37+
(283, "Move Zeroes"),
38+
(101, "Symmetric Tree"),
39+
(268, "Missing Number"),
40+
(9, "Palindrome Number"),
41+
(108, "Convert Sorted Array to Binary Search Tree"),
42+
(190, "Reverse Bits"),
43+
(572, "Subtree of Another Tree"),
44+
(977, "Squares of a Sorted Array"),
45+
(53, "Maximum Subarray"),
46+
(57, "Insert Interval"),
47+
(542, "01 Matrix"),
48+
(973, "K Closest Points to Origin"),
49+
(3, "Longest Substring Without Repeating Characters"),
50+
(15, "3Sum"),
51+
(102, "Binary Tree Level Order Traversal"),
52+
(133, "Clone Graph"),
53+
(150, "Evaluate Reverse Polish Notation"),
54+
(207, "Course Schedule"),
55+
(208, "Implement Trie (Prefix Tree)"),
56+
(322, "Coin Change"),
57+
(238, "Product of Array Except Self"),
58+
(155, "Min Stack"),
59+
(98, "Validate Binary Search Tree"),
60+
(200, "Number of Islands"),
61+
(994, "Rotting Oranges"),
62+
(33, "Search in Rotated Sorted Array"),
63+
(39, "Combination Sum"),
64+
(46, "Permutations"),
65+
(56, "Merge Intervals"),
66+
(236, "Lowest Common Ancestor of a Binary Tree"),
67+
(981, "Time Based Key-Value Store"),
68+
(721, "Accounts Merge"),
69+
(75, "Sort Colors"),
70+
(139, "Word Break"),
71+
(416, "Partition Equal Subset Sum"),
72+
(8, "String to Integer (atoi)"),
73+
(54, "Spiral Matrix"),
74+
(78, "Subsets"),
75+
(199, "Binary Tree Right Side View"),
76+
(5, "Longest Palindromic Substring"),
77+
(62, "Unique Paths"),
78+
(105, "Construct Binary Tree from Preorder and Inorder Traversal"),
79+
(11, "Container With Most Water"),
80+
(17, "Letter Combinations of a Phone Number"),
81+
(79, "Word Search"),
82+
(438, "Find All Anagrams in a String"),
83+
(310, "Minimum Height Trees"),
84+
(621, "Task Scheduler"),
85+
(146, "LRU Cache"),
86+
(230, "Kth Smallest Element in a BST"),
87+
(739, "Daily Temperatures"),
88+
(198, "House Robber"),
89+
(134, "Gas Station"),
90+
(31, "Next Permutation"),
91+
(36, "Valid Sudoku"),
92+
(49, "Group Anagrams"),
93+
(152, "Maximum Product Subarray"),
94+
(211, "Design Add and Search Words Data Structure"),
95+
(417, "Pacific Atlantic Water Flow"),
96+
(19, "Remove Nth Node From End of List"),
97+
(1091, "Shortest Path to Get Food"),
98+
(287, "Find the Duplicate Number"),
99+
(692, "Top K Frequent Words"),
100+
(300, "Longest Increasing Subsequence"),
101+
(261, "Graph Valid Tree"),
102+
(210, "Course Schedule II"),
103+
(24, "Swap Nodes in Pairs"),
104+
(113, "Path Sum II"),
105+
(128, "Longest Consecutive Sequence"),
106+
(189, "Rotate Array"),
107+
(328, "Odd Even Linked List"),
108+
(394, "Decode String"),
109+
(525, "Contiguous Array"),
110+
(662, "Maximum Width of Binary Tree"),
111+
(658, "Find K Closest Elements"),
112+
(424, "Longest Repeating Character Replacement"),
113+
(285, "Inorder Successor in BST"),
114+
(55, "Jump Game"),
115+
(2, "Add Two Numbers"),
116+
(22, "Generate Parentheses"),
117+
(148, "Sort List"),
118+
(323, "Number of Connected Components in an Undirected Graph"),
119+
(1197, "Minimum Knight Moves"),
120+
(560, "Subarray Sum Equals K"),
121+
(735, "Asteroid Collision"),
122+
(528, "Random Pick with Weight"),
123+
(215, "Kth Largest Element in an Array"),
124+
(221, "Maximal Square"),
125+
(48, "Rotate Image"),
126+
(103, "Binary Tree Zigzag Level Order Traversal"),
127+
(362, "Design Hit Counter"),
128+
(437, "Path Sum III"),
129+
(50, "Pow(x, n)"),
130+
(74, "Search a 2D Matrix"),
131+
(179, "Largest Number"),
132+
(91, "Decode Ways"),
133+
(253, "Meeting Rooms II"),
134+
(7, "Reverse Integer"),
135+
(73, "Set Matrix Zeroes"),
136+
(143, "Reorder List"),
137+
(271, "Encode and Decode Strings"),
138+
(787, "Cheapest Flights Within K Stops"),
139+
(863, "All Nodes Distance K in Binary Tree"),
140+
(16, "3Sum Closest"),
141+
(61, "Rotate List"),
142+
(153, "Find Minimum in Rotated Sorted Array"),
143+
(227, "Basic Calculator II"),
144+
(377, "Combination Sum IV"),
145+
(380, "Insert Delete GetRandom O(1)"),
146+
(435, "Non-overlapping Intervals"),
147+
(76, "Minimum Window Substring"),
148+
(297, "Serialize and Deserialize Binary Tree"),
149+
(42, "Trapping Rain Water"),
150+
(295, "Find Median from Data Stream"),
151+
(127, "Word Ladder"),
152+
(224, "Basic Calculator"),
153+
(1235, "Maximum Profit in Job Scheduling"),
154+
(23, "Merge k Sorted Lists"),
155+
(84, "Largest Rectangle in Histogram"),
156+
(124, "Binary Tree Maximum Path Sum"),
157+
(895, "Maximum Frequency Stack"),
158+
(4, "Median of Two Sorted Arrays"),
159+
(329, "Longest Increasing Path in a Matrix"),
160+
(32, "Longest Valid Parentheses"),
161+
(588, "Design In-Memory File System"),
162+
(759, "Employee Free Time"),
163+
(212, "Word Search II"),
164+
(269, "Alien Dictionary"),
165+
(815, "Bus Routes"),
166+
(239, "Sliding Window Maximum"),
167+
(336, "Palindrome Pairs"),
168+
(25, "Reverse Nodes in k-Group"),
169+
(37, "Sudoku Solver"),
170+
(41, "First Missing Positive"),
171+
(51, "N-Queens"),
172+
(632, "Smallest Range Covering Elements from K Lists"),
173+
]

0 commit comments

Comments
 (0)