Skip to content

Personal collection of LeetCode solutions done in multiple languages, shared for learning and reference.

Notifications You must be signed in to change notification settings

e0406370/reetkode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Reetkode

My personal collection of LeetCode solutions done in multiple languages, shared for learning and reference.

This README is generated using the following custom-built Python scripts: lc_markdown.py, lc_chart.py, and lc_stats.py, as part of an automated GitHub Actions workflow which runs during checks within pull requests made to the main branch, updating the README content and organising solution files prior to merging.

The following diagram illustrates the action flow of using these scripts:

Script flow


Progress Overview

LeetCode stats

Solutions Directory

ID Difficulty Type Title Solutions
1 🟩 Easy βš™οΈ Two Sum
3 🟨 Medium βš™οΈ Longest Substring Without Repeating Characters
11 🟨 Medium βš™οΈ Container With Most Water
13 🟩 Easy βš™οΈ Roman To Integer
14 🟩 Easy βš™οΈ Longest Common Prefix
17 🟨 Medium βš™οΈ Letter Combinations Of A Phone Number
28 🟩 Easy βš™οΈ Find The Index Of The First Occurrence In A String
36 🟨 Medium βš™οΈ Valid Sudoku
46 🟨 Medium βš™οΈ Permutations
49 🟨 Medium βš™οΈ Group Anagrams
50 🟨 Medium βš™οΈ Pow X N
58 🟩 Easy βš™οΈ Length Of Last Word
66 🟩 Easy βš™οΈ Plus One
73 🟨 Medium βš™οΈ Set Matrix Zeroes
77 🟨 Medium βš™οΈ Combinations
125 🟩 Easy βš™οΈ Valid Palindrome
128 🟨 Medium βš™οΈ Longest Consecutive Sequence
136 🟩 Easy βš™οΈ Single Number
151 🟨 Medium βš™οΈ Reverse Words In A String
175 🟩 Easy πŸ›’οΈ Combine Two Tables
176 🟨 Medium πŸ›’οΈ Second Highest Salary
178 🟨 Medium πŸ›’οΈ Rank Scores
180 🟨 Medium πŸ›’οΈ Consecutive Numbers
181 🟩 Easy πŸ›’οΈ Employees Earning More Than Their Managers
182 🟩 Easy πŸ›’οΈ Duplicate Emails
183 🟩 Easy πŸ›’οΈ Customers Who Never Order
184 🟨 Medium πŸ›’οΈ Department Highest Salary
185 πŸŸ₯ Hard πŸ›’οΈ Department Top Three Salaries
196 🟩 Easy πŸ›’οΈ Delete Duplicate Emails
197 🟩 Easy πŸ›’οΈ Rising Temperature
217 🟩 Easy βš™οΈ Contains Duplicate
230 🟨 Medium βš™οΈ Kth Smallest Element In A Bst
238 🟨 Medium βš™οΈ Product Of Array Except Self
242 🟩 Easy βš™οΈ Valid Anagram
268 🟩 Easy βš™οΈ Missing Number
271 🟨 Medium βš™οΈ Encode And Decode Strings
283 🟩 Easy βš™οΈ Move Zeroes
334 🟨 Medium βš™οΈ Increasing Triplet Subsequence
345 🟩 Easy βš™οΈ Reverse Vowels Of A String
347 🟨 Medium βš™οΈ Top K Frequent Elements
366 🟨 Medium βš™οΈ Find Leaves Of Binary Tree
387 🟩 Easy βš™οΈ First Unique Character String
389 🟩 Easy βš™οΈ Find The Difference
392 🟩 Easy βš™οΈ Is Subsequence
443 🟨 Medium βš™οΈ String Compression
459 🟩 Easy βš™οΈ Repeated Substring Pattern
507 🟩 Easy βš™οΈ Perfect Number
509 🟩 Easy βš™οΈ Fibonacci Number
511 🟩 Easy πŸ›’οΈ Game Play Analysis I
512 🟩 Easy πŸ›’οΈ Game Play Analysis II
550 🟨 Medium πŸ›’οΈ Game Play Analysis IV
570 🟨 Medium πŸ›’οΈ Managers With At Least 5 Direct Reports
577 🟩 Easy πŸ›’οΈ Employee Bonus
584 🟩 Easy πŸ›’οΈ Find Customer Referee
585 🟨 Medium πŸ›’οΈ Investments In 2016
586 🟩 Easy πŸ›’οΈ Customer Placing The Largest Number Of Orders
595 🟩 Easy πŸ›’οΈ Big Countries
596 🟩 Easy πŸ›’οΈ Classes More Than 5 Students
597 🟩 Easy πŸ›’οΈ Friend Requests I Overall Acceptance Rate
602 🟨 Medium πŸ›’οΈ Friend Requests II Who Has The Most Friends
603 🟩 Easy πŸ›’οΈ Consecutive Available Seats
607 🟩 Easy πŸ›’οΈ Sales Person
610 🟩 Easy πŸ›’οΈ Triangle Judgement
613 🟩 Easy πŸ›’οΈ Shortest Distance In A Line
619 🟩 Easy πŸ›’οΈ Biggest Single Number
620 🟩 Easy πŸ›’οΈ Not Boring Movies
626 🟨 Medium πŸ›’οΈ Exchange Seats
627 🟩 Easy πŸ›’οΈ Swap Salary
643 🟩 Easy βš™οΈ Maximum Average Subarray I
657 🟩 Easy βš™οΈ Robot Return To Origin
682 🟩 Easy βš™οΈ Baseball Game
709 🟩 Easy βš™οΈ To Lower Case
728 🟩 Easy βš™οΈ Self Dividing Numbers
796 🟩 Easy βš™οΈ Rotate String
896 🟩 Easy βš™οΈ Monotonic Array
1045 🟨 Medium πŸ›’οΈ Customers Who Bought All Products
1050 🟩 Easy πŸ›’οΈ Actors And Directors Who Cooperated At Least Three Times
1068 🟩 Easy πŸ›’οΈ Product Sales Analysis I
1069 🟩 Easy πŸ›’οΈ Product Sales Analysis II
1070 🟨 Medium πŸ›’οΈ Product Sales Analysis III
1071 🟩 Easy βš™οΈ Greatest Common Divisor Of Strings
1075 🟩 Easy πŸ›’οΈ Project Employees I
1082 🟩 Easy πŸ›’οΈ Sales Analysis I
1083 🟩 Easy πŸ›’οΈ Sales Analysis II
1084 🟩 Easy πŸ›’οΈ Sales Analysis III
1119 🟩 Easy βš™οΈ Remove Vowels From A String
1133 🟩 Easy βš™οΈ Largest Unique Number
1141 🟩 Easy πŸ›’οΈ User Activity For The Past 30 Days I
1148 🟩 Easy πŸ›’οΈ Article Views I
1164 🟨 Medium πŸ›’οΈ Product Price At A Given Date
1165 🟩 Easy βš™οΈ Single-row Keyboard
1174 🟨 Medium πŸ›’οΈ Immediate Food Delivery II
1179 🟩 Easy πŸ›’οΈ Reformat Department Table
1180 🟩 Easy βš™οΈ Count Substrings With Only One Distinct Letter
1193 🟨 Medium πŸ›’οΈ Monthly Transactions I
1204 🟨 Medium πŸ›’οΈ Last Person To Fit In The Bus
1207 🟩 Easy βš™οΈ Unique Number Of Occurrences
1211 🟩 Easy πŸ›’οΈ Queries Quality And Percentage
1232 🟩 Easy βš™οΈ Check If It Is A Straight Line
1251 🟩 Easy πŸ›’οΈ Average Selling Price
1255 πŸŸ₯ Hard βš™οΈ Maximum Score Words Formed By Letters
1280 🟩 Easy πŸ›’οΈ Students And Examinations
1321 🟨 Medium πŸ›’οΈ Restaurant Growth
1327 🟩 Easy πŸ›’οΈ List The Products Ordered In A Period
1341 🟨 Medium πŸ›’οΈ Movie Rating
1346 🟩 Easy βš™οΈ Check If N And Its Double Exist
1352 🟨 Medium βš™οΈ Product Of The Last K Numbers
1378 🟩 Easy πŸ›’οΈ Replace Employee Id With The Unique Identifier
1393 🟨 Medium πŸ›’οΈ Capital Gain Loss
1407 🟩 Easy πŸ›’οΈ Top Travellers
1431 🟩 Easy βš™οΈ Kids With The Greatest Number Of Candies
1455 🟩 Easy βš™οΈ Check If A Word Occurs As A Prefix Of Any Word In A Sentence
1456 🟨 Medium βš™οΈ Maximum Number Of Vowels In A Substring Of Given Length
1484 🟩 Easy πŸ›’οΈ Group Sold Products By The Date
1491 🟩 Easy βš™οΈ Average Salary Excluding The Minimum And Maximum Salary
1502 🟩 Easy βš™οΈ Can Make Arithmetic Progression From Sequence
1512 🟩 Easy βš™οΈ Number Of Good Pairs
1517 🟩 Easy πŸ›’οΈ Find Users With Valid Emails
1523 🟩 Easy βš™οΈ Count Odd Numbers In An Interval Range
1527 🟩 Easy πŸ›’οΈ Patients With A Condition
1534 🟩 Easy βš™οΈ Count Good Triplets
1570 🟨 Medium βš™οΈ Dot Product Of Two Sparse Vectors
1572 🟩 Easy βš™οΈ Matrix Diagonal Sum
1581 🟩 Easy πŸ›’οΈ Customer Who Visited But Did Not Make Any Transactions
1587 🟩 Easy πŸ›’οΈ Bank Account Summary II
1633 🟩 Easy πŸ›’οΈ Percentage Of Users Who Attended A Contest
1652 🟩 Easy βš™οΈ Defuse The Bomb
1661 🟩 Easy πŸ›’οΈ Average Time Of Process Per Machine
1667 🟩 Easy πŸ›’οΈ Fix Names In A Table
1672 🟩 Easy βš™οΈ Richest Customer Wealth
1679 🟨 Medium βš™οΈ Max Number Of K-sum Pairs
1683 🟩 Easy πŸ›’οΈ Invalid Tweets
1684 🟩 Easy βš™οΈ Count The Number Of Consistent Strings
1693 🟩 Easy πŸ›’οΈ Daily Leads And Partners
1700 🟩 Easy βš™οΈ Number Of Students Unable To Eat Lunch
1720 🟩 Easy βš™οΈ Decode Xored Array
1726 🟨 Medium βš™οΈ Tuple With Same Product
1729 🟩 Easy πŸ›’οΈ Find Followers Count
1731 🟩 Easy πŸ›’οΈ The Number Of Employees Which Report To Each Employee
1741 🟩 Easy πŸ›’οΈ Find Total Time Spent By Each Employee
1752 🟩 Easy βš™οΈ Check If Array Is Sorted And Rotated
1756 🟨 Medium βš™οΈ Design Most Recently Used Queue
1757 🟩 Easy πŸ›’οΈ Recyclable And Low Fat Products
1768 🟩 Easy βš™οΈ Merge Strings Alternately
1773 🟩 Easy βš™οΈ Count Items Matching A Rule
1789 🟩 Easy πŸ›’οΈ Primary Department For Each Employee
1790 🟩 Easy βš™οΈ Check If One String Swap Can Make Strings Equal
1795 🟩 Easy πŸ›’οΈ Rearrange Products Table
1796 🟩 Easy βš™οΈ Second Largest Digit String
1800 🟩 Easy βš™οΈ Maximum Ascending Subarray Sum
1822 🟩 Easy βš™οΈ Sign Of The Product Of An Array
1829 🟨 Medium βš™οΈ Maximum Xor For Each Query
1845 🟨 Medium βš™οΈ Seat Reservation Manager
1852 🟨 Medium βš™οΈ Distinct Numbers In Each Subarray
1859 🟩 Easy βš™οΈ Sorting The Sentence
1873 🟩 Easy πŸ›’οΈ Calculate Special Bonus
1890 🟩 Easy πŸ›’οΈ The Latest Login In 2020
1907 🟨 Medium πŸ›’οΈ Count Salary Categories
1910 🟨 Medium βš™οΈ Remove All Occurrences Of A Substring
1934 🟨 Medium πŸ›’οΈ Confirmation Rate
1957 🟩 Easy βš™οΈ Delete Characters To Make Fancy String
1965 🟩 Easy πŸ›’οΈ Employees With Missing Information
1978 🟩 Easy πŸ›’οΈ Employees Whose Manager Left The Company
1995 🟩 Easy βš™οΈ Count Special Quadruplets
2042 🟩 Easy βš™οΈ Check If Numbers Are Ascending In A Sentence
2044 🟨 Medium βš™οΈ Count Number Of Maximum Bitwise-or Subsets
2073 🟩 Easy βš™οΈ Time Needed To Buy Tickets
2109 🟨 Medium βš™οΈ Adding Spaces To A String
2124 🟩 Easy βš™οΈ Check If All As Appears Before All Bs
2125 🟨 Medium βš™οΈ Number Of Laser Beams In A Bank
2215 🟩 Easy βš™οΈ Find The Difference Of Two Arrays
2283 🟩 Easy βš™οΈ Check If Number Has Equal Digit Count And Digit Value
2342 🟨 Medium βš™οΈ Max Sum Of A Pair With Equal Sum Of Digits
2349 🟨 Medium βš™οΈ Design A Number Container System
2352 🟨 Medium βš™οΈ Equal Row And Column Pairs
2356 🟩 Easy πŸ›’οΈ Number Of Unique Subjects Taught By Each Teacher
2364 🟨 Medium βš™οΈ Count Number Of Bad Pairs
2391 🟨 Medium βš™οΈ Minimum Amount Of Time To Collect Garbage
2393 🟨 Medium βš™οΈ Count Strictly Increasing Subarrays
2427 🟩 Easy βš™οΈ Number Of Common Factors
2475 🟩 Easy βš™οΈ Number Of Unequal Triplets In Array
2485 🟩 Easy βš™οΈ Find The Pivot Integer
2490 🟩 Easy βš™οΈ Circular Sentence
2599 🟨 Medium βš™οΈ Make The Prefix Sum Non-negative
2619 🟩 Easy βš™οΈ Array Prototype Last
2620 🟩 Easy βš™οΈ Counter
2621 🟩 Easy βš™οΈ Sleep
2623 🟨 Medium βš™οΈ Memoize
2626 🟩 Easy βš™οΈ Array Reduce Transformation
2629 🟩 Easy βš™οΈ Function Composition
2631 🟨 Medium βš™οΈ Group By
2634 🟩 Easy βš™οΈ Filter Elements From Array
2635 🟩 Easy βš™οΈ Apply Transform Over Each Element In Array
2637 🟨 Medium βš™οΈ Promise Time Limit
2657 🟨 Medium βš™οΈ Find The Prefix Common Array Of Two Arrays
2665 🟩 Easy βš™οΈ Counter II
2666 🟩 Easy βš™οΈ Allow One Function Call
2667 🟩 Easy βš™οΈ Create Hello World Function
2677 🟩 Easy βš™οΈ Chunk Array
2703 🟩 Easy βš™οΈ Return Length Of Arguments Passed
2704 🟩 Easy βš™οΈ To Be Or Not To Be
2715 🟩 Easy βš™οΈ Timeout Cancellation
2722 🟨 Medium βš™οΈ Join Two Arrays By Id
2723 🟩 Easy βš™οΈ Add Two Promises
2724 🟩 Easy βš™οΈ Sort By
2725 🟩 Easy βš™οΈ Interval Cancellation
2727 🟩 Easy βš™οΈ Is Object Empty
2728 🟩 Easy βš™οΈ Count Houses In A Circular Street
2769 🟩 Easy βš™οΈ Find The Maximum Achievable Number
2879 🟩 Easy πŸ›’οΈ Display The First Three Rows
2914 🟨 Medium βš™οΈ Minimum Number Of Changes To Make Binary String Beautiful
2974 🟩 Easy βš™οΈ Minimum Number Game
3014 🟩 Easy βš™οΈ Minimum Number Of Pushes To Type Word I
3016 🟨 Medium βš™οΈ Minimum Number Of Pushes To Type Word II
3032 🟩 Easy βš™οΈ Count Numbers With Unique Digits II
3065 🟩 Easy βš™οΈ Minimum Operations To Exceed Threshold Value I
3066 🟨 Medium βš™οΈ Minimum Operations To Exceed Threshold Value II
3105 🟩 Easy βš™οΈ Longest Strictly Increasing Or Strictly Decreasing Subarray
3110 🟩 Easy βš™οΈ Score Of A String
3151 🟩 Easy βš™οΈ Special Array I
3160 🟨 Medium βš™οΈ Find The Number Of Distinct Colors Among The Balls
3162 🟩 Easy βš™οΈ Find The Number Of Good Pairs I
3163 🟨 Medium βš™οΈ String Compression III
3173 🟩 Easy βš™οΈ Bitwise Or Of Adjacent Elements
3174 🟩 Easy βš™οΈ Clear Digits
3211 🟨 Medium βš™οΈ Generate Binary Strings Without Adjacent Zeros
3220 🟨 Medium πŸ›’οΈ Odd And Even Transactions
3223 🟨 Medium βš™οΈ Minimum Length Of String After Operations
3300 🟩 Easy βš™οΈ Minimum Element After Replacement With Digit Sum
3340 🟩 Easy βš™οΈ Check Balanced String
3345 🟩 Easy βš™οΈ Smallest Divisible Digit Product I
3427 🟩 Easy βš™οΈ Sum Of Variable Length Subarrays
3452 🟩 Easy βš™οΈ Sum Of Good Numbers
3461 🟩 Easy βš™οΈ Check If Digits Are Equal In String After Operations I
3465 🟩 Easy πŸ›’οΈ Find Products With Valid Serial Numbers
3467 🟩 Easy βš™οΈ Transform Array By Parity
3475 🟨 Medium πŸ›’οΈ Dna Pattern Recognition
3491 🟩 Easy βš™οΈ Phone Number Prefix
3492 🟩 Easy βš™οΈ Maximum Containers On A Ship
3497 🟨 Medium πŸ›’οΈ Analyze Subscription Conversion
3498 🟩 Easy βš™οΈ Reverse Degree Of A String
3512 🟩 Easy βš™οΈ Minimum Operations To Make Array Sum Divisible By K
3527 🟨 Medium βš™οΈ Find The Most Common Response
3536 🟩 Easy βš™οΈ Maximum Product Of Two Digits
3541 🟩 Easy βš™οΈ Find Most Frequent Vowel And Consonant
3550 🟩 Easy βš™οΈ Smallest Index With Digit Sum Equal To Index
3616 🟨 Medium βš™οΈ Number Of Student Replacements
3631 🟨 Medium βš™οΈ Sort Threats By Severity And Exploitability

About

Personal collection of LeetCode solutions done in multiple languages, shared for learning and reference.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published