Skip to content

Collection of LeetCode questions to ace the coding interview!

Notifications You must be signed in to change notification settings

ykdy3951/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Collection of LeetCode questions to ace the coding interview!

Table of Contents

# Title Solution Difficulty
1 Two Sum Python, Rust Easy
2 Add Two Numbers Python, Rust Medium
3 Longest Substring Without Repeating Characters Rust Medium
4 Median of Two Sorted Arrays Rust Hard
5 Longest Palindromic Substring Rust Medium
6 Zigzag Conversion Rust Medium
7 Reverse Integer Rust Medium
8 String to Integer (atoi) Rust Medium
9 Palindrome Number Rust Easy
10 Regular Expression Matching Python Hard
11 Container With Most Water Rust Medium
12 Integer to Roman Rust Medium
13 Roman to Integer Rust Easy
14 Longest Common Prefix Rust Easy
15 3Sum Rust Medium
16 3Sum Closest Rust Medium
17 Letter Combinations of a Phone Number Python Medium
18 4Sum Python Medium
19 Remove Nth Node From End of List Python Medium
20 Valid Parentheses Rust Easy
21 Merge Two Sorted Lists Rust Easy
22 Generate Parentheses Python Medium
23 Merge k Sorted Lists Python Hard
24 Swap Nodes in Pairs Python Medium
25 Reverse Nodes in k-Group Python Hard
26 Remove Duplicates from Sorted Array Rust Easy
27 Remove Element Rust Easy
28 Find the Index of the First Occurrence in a String Rust Easy
29 Divide Two Integers Python Medium
30 Substring with Concatenation of All Words Python Hard
31 Next Permutation Python Medium
32 Longest Valid Parentheses Python Hard
33 Search in Rotated Sorted Array Python Medium
34 Find First and Last Position of Element in Sorted Array Python Medium
35 Search Insert Position Rust Easy
36 Valid Sudoku Rust Medium
37 Sudoku Solver Python Hard
38 Count and Say Python Medium
39 Combination Sum Python Medium
40 Combination Sum II Python Medium
41 First Missing Positive Python Hard
42 Trapping Rain Water Python Hard
43 Multiply Strings Python Medium
44 Wildcard Matching Python Hard
45 Jump Game II Rust Medium
46 Permutations Python Medium
47 Permutations II Python Medium
48 Rotate Image Python Medium
49 Group Anagrams Python Medium
50 Pow(x, n) Python Medium
51 N-Queens Python Hard
52 N-Queens II Python Hard
53 Maximum Subarray Rust Medium
54 Spiral Matrix Python Medium
55 Jump Game Python Medium
56 Merge Intervals Python Medium
57 Insert Interval Python Medium
58 Length of Last Word Rust Easy
59 Spiral Matrix II Python Medium
60 Permutation Sequence Python Hard
61 Rotate List Python Medium
62 Unique Paths Python Medium
65 Valid Number Python Hard
66 Plus One Rust Easy
67 Add Binary Rust Easy
68 Text Justification Python Hard
69 Sqrt(x) Rust Easy
70 Climbing Stairs Rust Easy
71 Simplify Path Python Medium
72 Edit Distance Python Medium
73 Set Matrix Zeroes Python Medium
79 Word Search Python Medium
80 Remove Duplicates from Sorted Array II Rust Medium
81 Search in Rotated Sorted Array II Python Medium
82 Remove Duplicates from Sorted List II Python Medium
83 Remove Duplicates from Sorted List Rust Easy
86 Partition List Python Medium
88 Merge Sorted Array Rust Easy
89 Gray Code Python Medium
90 Subsets II Python Medium
91 Decode Ways Python Medium
92 Reverse Linked List II Python Medium
93 Restore IP Addresses Python Medium
94 Binary Tree Inorder Traversal Rust Easy
95 Unique Binary Search Trees II Python Medium
96 Unique Binary Search Trees Python Medium
97 Interleaving String Python Medium
98 Validate Binary Search Tree Python Medium
99 Recover Binary Search Tree Python Medium
100 Same Tree Python Easy
101 Symmetric Tree Python Easy
102 Binary Tree Level Order Traversal Python Medium
104 Maximum Depth of Binary Tree Python Easy
108 Convert Sorted Array to Binary Search Tree Python Easy
109 Convert Sorted List to Binary Search Tree Python Medium
110 Balanced Binary Tree Python Easy
111 Minimum Depth of Binary Tree Python Easy
112 Path Sum Python Easy
118 Pascal's Triangle Python Easy
119 Pascal's Triangle II Rust Easy
121 Best Time to Buy and Sell Stock Python Easy
125 Valid Palindrome Python Easy
136 Single Number Python Easy
137 Single Number II Python Medium
141 Linked List Cycle Python Easy
142 Linked List Cycle II Python Medium
144 Binary Tree Preorder Traversal Python Easy
145 Binary Tree Postorder Traversal Python Easy
146 LRU Cache Python Medium
148 Sort List Python Medium
149 Max Points on a Line Python Hard
150 Evaluate Reverse Polish Notation Python Medium
160 Intersection of Two Linked Lists Python Easy
168 Excel Sheet Column Title Python Easy
169 Majority Element Rust Easy
171 Excel Sheet Column Number Python Easy
176 Second Highest Salary SQL Medium
177 Nth Highest Salary SQL Medium
178 Rank Scores SQL Medium
180 Consecutive Numbers SQL Medium
182 Duplicate Emails SQL Easy
183 Customers Who Never Order SQL Easy
184 Department Highest Salary SQL Medium
185 Department Top Three Salaries SQL Hard
191 Number of 1 Bits Rust Easy
196 Delete Duplicate Emails SQL Easy
197 Rising Temperature SQL Easy
210 Course Schedule II Python Medium
231 Power of Two Rust Easy
238 Product of Array Except Self Rust Medium
262 Trips and Users SQL Hard
268 Missing Number Rust Easy
342 Power of Four Rust Easy
349 Intersection of Two Arrays Rust Easy
407 Trapping Rain Water II Python Hard
452 Minimum Number of Arrows to Burst Balloons Rust Medium
511 Game Play Analysis I SQL Easy
550 Game Play Analysis IV SQL Medium
570 Managers with at Least 5 Direct Reports SQL Medium
584 Find Customer Referee SQL Easy
586 Customer Placing the Largest Number of Orders SQL Easy
595 Big Countries SQL Easy
596 Classes More Than 5 Students Easy
607 Sales Person SQL Easy
610 Triangle Judgement SQL Easy
619 Biggest Single Number SQL Easy
621 Task Scheduler Rust Medium
627 Swap Salary SQL Easy
746 Min Cost Climbing Stairs Rust Easy
791 Custom Sort String Rust Medium
827 Making A Large Island Python Hard
844 Backspace String Compare Rust Easy
876 Middle of the Linked List Rust Easy
930 Binary Subarrays With Sum Rust Medium
977 Squares of a Sorted Array Rust Easy
1050 Actors and Directors Who Cooperated At Least Three Times SQL Easy
1068 Product Sales Analysis I SQL Easy
1075 Project Employees I SQL Easy
1084 Sales Analysis III SQL Easy
1141 User Activity for the Past 30 Days I SQL Easy
1148 Article Views I SQL Easy
1171 Remove Zero Sum Consecutive Nodes from Linked List Rust Medium
1179 Reformat Department Table SQL Easy
1211 Queries Quality and Percentage SQL Easy
1251 Average Selling Price SQL Easy
1280 Students and Examinations SQL Easy
1327 List the Products Ordered in a Period SQL Easy
1356 Sort Integers by The Number of 1 Bits Rust Easy
1378 Replace Employee ID With The Unique Identifier SQL Easy
1407 Top Travellers SQL Easy
1484 Group Sold Products By The Date SQL Easy
1541 Top Travellers SQL Easy
1662 Check If Two String Arrays are Equivalent Rust Easy
1780 Check if Number is a Sum of Powers of Three Python Medium
2161 Partition Array According to Given Pivot Python Medium
2206 Divide Array Into Equal Pairs Python Easy
2373 Largest Local Values in a Matrix Python Easy
2379 Minimum Recolors to Get K Consecutive Black Blocks Python Easy
2485 Find the Pivot Integer Rust Easy
2523 Closest Prime Numbers in Range Python Medium
2540 Minimum Common Value Rust Easy
2570 Merge Two 2D Arrays by Summing Values Python Easy
2579 Count Total Number of Colored Cells Python Medium
2657 Find the Prefix Common Array of Two Arrays Python Medium
2864 Maximum Odd Binary Number Rust Easy
2965 Find Missing and Repeated Values Python Easy
3005 Count Elements With Maximum Frequency Rust Easy
3208 Alternating Groups II Python Medium
3235 Check if the Rectangle Corner Is Reachable Python Hard
3465 Find Products with Valid Serial Numbers SQL Easy

About

Collection of LeetCode questions to ace the coding interview!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •