https://github.com/alvii147/leetcode
LeetCode problems & solutions
https://github.com/alvii147/leetcode
algorithms concurrency database leetcode shell
Last synced: about 2 months ago
JSON representation
LeetCode problems & solutions
- Host: GitHub
- URL: https://github.com/alvii147/leetcode
- Owner: alvii147
- Created: 2021-07-09T01:31:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-06T20:16:57.000Z (over 1 year ago)
- Last Synced: 2025-02-16T16:57:57.818Z (over 1 year ago)
- Topics: algorithms, concurrency, database, leetcode, shell
- Language: Python
- Homepage:
- Size: 963 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.pcrf.net)
# LeetCode Problems & Solutions

This repository contains solutions to [LeetCode](https://leetcode.com/) problems.

## Algorithms

Completed **69** out of **2808** (unpaid) problems

No. | Problem | Difficulty | Languages
--- | --- | --- | ---
1 | [Two Sum](Algorithms/1_Two_Sum) |  | 
2 | [Add Two Numbers](Algorithms/2_Add_Two_Numbers) |  | 
3 | [Longest Substring Without Repeating Characters](Algorithms/3_Longest_Substring_Without_Repeating_Characters) |  | 
4 | [Median of Two Sorted Arrays](Algorithms/4_Median_of_Two_Sorted_Arrays) |  | 
5 | [Longest Palindromic Substring](Algorithms/5_Longest_Palindromic_Substring) |  | 
6 | [Zigzag Conversion](Algorithms/6_ZigZag_Conversion) |  | 
7 | [Reverse Integer](Algorithms/7_Reverse_Integer) |  | 
8 | [String to Integer (atoi)](Algorithms/8_String_to_Integer) |  | 
9 | [Palindrome Number](Algorithms/9_Palindrome_Number) |  | 
10 | [Regular Expression Matching](Algorithms/10_Regular_Expression_Matching) |  | 
11 | [Container With Most Water](Algorithms/11_Container_With_Most_Water) |  | 
12 | [Integer to Roman](Algorithms/12_Integer_to_Roman) |  | 
13 | [Roman to Integer](Algorithms/13_Roman_to_Integer) |  | 
14 | [Longest Common Prefix](Algorithms/14_Longest_Common_Prefix) |  | 
15 | [3Sum](Algorithms/15_3Sum) |  | 
16 | [3Sum Closest](Algorithms/16_3Sum_Closest) |  | 
17 | [Letter Combinations of a Phone Number](Algorithms/17_Letter_Combinations_of_a_Phone_Number) |  | 
19 | [Remove Nth Node From End of List](Algorithms/19_Remove_Nth_Node_From_End_of_List) |  | 
20 | [Valid Parentheses](Algorithms/20_Valid_Parentheses) |  | 
21 | [Merge Two Sorted Lists](Algorithms/21_Merge_Two_Sorted_Lists) |  | 
23 | [Merge k Sorted Lists](Algorithms/23_Merge_k_Sorted_Lists) |  | 
25 | [Reverse Nodes in k-Group](Algorithms/25_Reverse_Nodes_in_k-Group) |  | 
33 | [Search in Rotated Sorted Array](Algorithms/33_Search_in_Rotated_Sorted_Array) |  | 
39 | [Combination Sum](Algorithms/39_Combination_Sum) |  | 
48 | [Rotate Image](Algorithms/48_Rotate_Image) |  | 
49 | [Group Anagrams](Algorithms/49_Group_Anagrams) |  | 
53 | [Maximum Subarray](Algorithms/53_Maximum_Subarray) |  | 
54 | [Spiral Matrix](Algorithms/54_Spiral_Matrix) |  | 
55 | [Jump Game](Algorithms/55_Jump_Game) |  | 
56 | [Merge Intervals](Algorithms/56_Merge_Intervals) |  | 
57 | [Insert Interval](Algorithms/57_Insert_Interval) |  | 
59 | [Spiral Matrix II](Algorithms/59_Spiral_Matrix_II) |  | 
62 | [Unique Paths](Algorithms/62_Unique_Paths) |  | 
68 | [Text Justification](Algorithms/68_Text_Justification) |  | 
70 | [Climbing Stairs](Algorithms/70_Climbing_Steps) |  | 
76 | [Minimum Window Substring](Algorithms/76_Minimum_Window_Substring) |  | 
79 | [Word Search](Algorithms/79_Word_Search) |  | 
128 | [Longest Consecutive Sequence](Algorithms/128_Longest_Consecutive_Sequence) |  | 
133 | [Clone Graph](Algorithms/133_Clone_Graph) |  | 
139 | [Word Break](Algorithms/139_Word_Break) |  | 
141 | [Linked List Cycle](Algorithms/141_Linked_List_Cycle) |  | 
143 | [Reorder List](Algorithms/143_Reorder_List) |  | 
152 | [Maximum Product Subarray](Algorithms/152_Maximum_Product_Subarray) |  | 
153 | [Find Minimum in Rotated Sorted Array](Algorithms/153_Find_Minimum_in_Rotated_Sorted_Array) |  | 
190 | [Reverse Bits](Algorithms/190_Reverse_Bits) |  | 
191 | [Number of 1 Bits](Algorithms/191_Number_of_1_Bits) |  | 
198 | [House Robber](Algorithms/198_House_Robber) |  | 
200 | [Number of Islands](Algorithms/200_Number_of_Islands) |  | 
215 | [Kth Largest Element in an Array](Algorithms/215_Kth_Largest_Element_in_an_Array) |  | 
224 | [Basic Calculator](Algorithms/224_Basic_Calculator) |  | 
230 | [Kth Smallest Element in a BST](Algorithms/230_Kth_Smallest_Element_in_a_BST) |  | 
268 | [Missing Number](Algorithms/268_Missing_Number) |  | 
295 | [Find Median from Data Stream](Algorithms/295_Find_Median_from_Data_Stream) |  | 
297 | [Serialize and Deserialize Binary Tree](Algorithms/297_Serialize_and_Deserialize_Binary_Tree) |  | 
300 | [Longest Increasing Subsequence](Algorithms/300_Longest_Increasing_Subsequence) |  | 
322 | [Coin Change](Algorithms/322_Coin_Change) |  | 
417 | [Pacific Atlantic Water Flow](Algorithms/417_Pacific_Atlantic_Water_Flow) |  | 
424 | [Longest Repeating Character Replacement](Algorithms/424_Longest_Repeating_Character_Replacement) |  | 
435 | [Non-overlapping Intervals](Algorithms/435_Non-overlapping_Intervals) |  | 
438 | [Find All Anagrams in a String](Algorithms/438_Find_All_Anagrams_in_a_String) |  | 
525 | [Contiguous Array](Algorithms/525_Contiguous_Array) |  | 
572 | [Subtree of Another Tree](Algorithms/572_Subtree_of_Another_Tree) |  | 
647 | [Palindromic Substrings](Algorithms/647_Palindrome_Substrings) |  | 
697 | [Degree of an Array](Algorithms/697_Degree_of_an_Array) |  | 
981 | [Time Based Key-Value Store](Algorithms/981_Time_Based_Key-Value_Store) |  | 
994 | [Rotting Oranges](Algorithms/994_Rotting_Oranges) |  | 
1391 | [Check if There is a Valid Path in a Grid](Algorithms/1391_Check_if_There_is_a_Valid_Path_in_a_Grid) |  | 
2043 | [Simple Bank System](Algorithms/2043_Simple_Bank_System) |  | 
2270 | [Number of Ways to Split Array](Algorithms/2270_Number_of_Ways_to_Split_Array) |  | 
## Database

Completed **36** out of **100** (unpaid) problems

No. | Problem | Difficulty | Languages
--- | --- | --- | ---
175 | [Combine Two Tables](Database/175_Combine_Two_Tables) |  | 
176 | [Second Highest Salary](Database/176_Second_Highest_Salary) |  | 
177 | [Nth Highest Salary](Database/177_Nth_Highest_Salary) |  | 
178 | [Rank Scores](Database/178_Rank_Scores) |  | 
180 | [Consecutive Numbers](Database/180_Consecutive_Numbers) |  | 
181 | [Employees Earning More Than Their Managers](Database/181_Employees_Earning_More_Than_Their_Managers) |  | 
182 | [Duplicate Emails](Database/182_Duplicate_Emails) |  | 
183 | [Customers Who Never Order](Database/183_Customers_Who_Never_Order) |  | 
184 | [Department Highest Salary](Database/184_Department_Highest_Salary) |  | 
185 | [Department Top Three Salaries](Database/185_Department_Top_Three_Salaries) |  | 
196 | [Delete Duplicate Emails](Database/196_Delete_Dupicate_Emails) |  | 
197 | [Rising Temperature](Database/197_Rising_Temperature) |  | 
262 | [Trips and Users](Database/262_Trips_and_Users) |  | 
511 | [Game Play Analysis I](Database/511_Game_Play_Analysis_I) |  | 
584 | [Find Customer Referee](Database/584_Find_Customer_Referee) |  | 
586 | [Customer Placing the Largest Number of Orders](Database/586_Customer_Placing_the_Largest_Number_of_Orders) |  | 
595 | [Big Countries](Database/595_Big_Countries) |  | 
596 | [Classes With at Least 5 Students](Database/596_Classes_More_Than_5_Students) |  | 
601 | [Human Traffic of Stadium](Database/601_Human_Traffic_of_Stadium) |  | 
607 | [Sales Person](Database/607_Sales_Person) |  | 
608 | [Tree Node](Database/608_Tree_Node) |  | 
620 | [Not Boring Movies](Database/620_Not_Boring_Movies) |  | 
626 | [Exchange Seats](Database/626_Exchange_Seats) |  | 
627 | [Swap Salary](Database/627_Swap_Salary) |  | 
1050 | [Actors and Directors Who Cooperated At Least Three Times](Database/1050_Actors_and_Directors_Who_Cooperated_At_Least_Three_Times) |  | 
1084 | [Sales Analysis III](Database/1084_Sales_Analysis_III) |  | 
1141 | [User Activity for the Past 30 Days I](Database/1141_User_Activity_for_the_Past_30_Days_I) |  | 
1148 | [Article Views I](Database/1148_Article_Views_I) |  | 
1179 | [Reformat Department Table](Database/1179_Reformat_Department_Table) |  | 
1393 | [Capital Gain/Loss](Database/1393_Capital_Gain_Loss) |  | 
1407 | [Top Travellers](Database/1407_Top_Travellers) |  | 
1484 | [Group Sold Products By The Date](Database/1484_Group_Sold_Products_By_The_Date) |  | 
1527 | [Patients With a Condition](Database/1527_Patients_With_a_Condition) |  | 
1581 | [Customer Who Visited but Did Not Make Any Transactions](Database/1581_Customer_Who_Visited_but_Did_Not_Make_Any_Transactions) |  | 
1587 | [Bank Account Summary II](Database/1587_Bank_Account_Summary_II) |  | 
1667 | [Fix Names in a Table](Database/1667_Fix_Names_in_a_Table) |  | 
## Shell

Completed **2** out of **4** (unpaid) problems

No. | Problem | Difficulty | Languages
--- | --- | --- | ---
192 | [Word Frequency](Shell/192_Word_Frequency) |  | 
193 | [Valid Phone Numbers](Shell/193_Valid_Phone_Numbers) |  | 
## Concurrency

Completed **6** out of **6** (unpaid) problems

No. | Problem | Difficulty | Languages
--- | --- | --- | ---
1114 | [Print in Order](Concurrency/1114_Print_in_Order) |  |  
1115 | [Print FooBar Alternately](Concurrency/1115_Print_FooBar_Alternately) |  |  
1116 | [Print Zero Even Odd](Concurrency/1116_Print_Zero_Even_Odd) |  |  
1117 | [Building H2O](Concurrency/1117_Building_H2O) |  |  
1195 | [Fizz Buzz Multithreaded](Concurrency/1195_Fizz_Buzz_Multithreaded) |  |  
1226 | [The Dining Philosophers](Concurrency/1226_The_Dining_Philosophers) |  |  