Skip to content

Latest commit

 

History

History
152 lines (125 loc) · 40.4 KB

README.md

File metadata and controls

152 lines (125 loc) · 40.4 KB

Welcome to my LeetCode Python Adventure!

This is where I keep my Python code for all the LeetCode problems I've tackled so far. I'm using this to improve my coding skills, especially with data structures and algorithms.

What's LeetCode?

LeetCode is a website where programmers can practice solving coding challenges.

Remember: Consistency is the key to unlocking the secrets of problem-solving. Join me on this daily LeetCode adventure and let's conquer coding challenges together!

LeetCode Solution Tracker

String

S# Question# Difficulty Questions Solutions
01 771 Easy Jewels and Stones Jewels and Stones
02 520 Easy Detect Capital Detect Capital
03 2129 Easy Capitalize the Title Capitalize the Title
04 557 Easy Reverse Words in a String III Reverse Words in a String III
05 434 Easy Number of Segments in a String Number of Segments in a String
06 3120 Easy Count the Number of Special Characters I Count the Number of Special Characters I
07 709 Easy To Lower Case To Lower Case
08 415 Easy Add Strings Add Strings
09 28 Easy Find the Index of the First Occurrence in a String Find the Index of the First Occurrence in a String
10 2716 Easy Minimize String Length Minimize String Length
11 796 Easy Rotate String Rotate String
12 3110 Easy Score of a String Score of a String
13 334 Easy Reverse String Reverse String
14 58 Easy Length of Last Word Length of Last Word
15 3136 Easy Valid Word Valid Word
16 392 Easy Is Subsequence Is Subsequence
17 67 Easy Add Binary Add Binary
18 43 Medium Multiply Strings Multiply Strings
19 2785 Medium Sort Vowels in a String Sort Vowels in a String
20 345 Easy Reverse Vowels of a String Reverse Vowels of a String
21 2937 Easy Make Three Strings Equal Make Three Strings Equal
22 151 Medium Reverse Words in a String Reverse Words in a String
23 3046 Easy Split the Array Split the Array
24 2788 Easy Split Strings by Separator Split Strings by Separator
25 500 Easy Keyboard Row Keyboard Row
26 819 Easy Most Common Word Most Common Word
27 412 Easy Fizz Buzz Fizz Buzz
28 1408 Easy String Matching in an Array String Matching in an Array
29 1689 Easy Count the Number of Consistent Strings Count the Number of Consistent Strings
30 2490 Easy Circular Sentence Circular Sentence
31 242 Easy Valid Anagram Valid Anagram
32 884 Easy Uncommon Words from Two Sentences Uncommon Words from Two Sentences
33 2678 Easy Number of Senior Citizens Number of Senior Citizens
34 1910 Medium Remove All Occurrences of a Substring Remove All Occurrences of a Substring
35 1967 Easy Number of Strings That Appear as Substrings in Word Number of Strings That Appear as Substrings in Word
36 1455 Easy Check If a Word Occurs As a Prefix.... Check If a Word Occurs As a Prefix of Any Word in a Sentence
37 551 Easy Student Attendance Record I Student Attendance Record I

Arrays

S# Question# Difficulty Questions Solutions
01 1 Easy Two Sum Two Sum
02 1929 Easy Concatenation of Array Concatenation of Array
03 217 Easy Contains Duplicate Contains Duplicate
04 448 Easy Find All Numbers Disappeared in an Array Find All Numbers Disappeared in an Array
05 378 Medium Kth Smallest Element in a Sorted Matrix Kth Smallest Element in a Sorted Matrix
06 1822 Easy Sign of the Product of an Array Sign of the Product of an Array
07 2089 Easy Find Target Indices After Sorting Array Find Target Indices After Sorting Array
08 1470 Easy Shuffle the Array Shuffle the Array
09 26 Easy Remove Duplicates from Sorted Array Remove Duplicates from Sorted Array
10 2215 Easy Find the Difference of Two Arrays Find the Difference of Two Arrays
11 169 Easy Majority Element Majority Elemnet
12 75 Medium Sort Colors Sort Colors
13 1480 Easy Running Sum of 1d Array Running Sum of 1d Array
14 1295 Easy Find Numbers with Even Number of Digits Find Numbers with Even Number of Digits
15 349 Easy Intersection of Two Arrays Intersection of Two Arrays
16 1365 Easy How Many Numbers Are Smaller Than the Current Number How Many Numbers Are Smaller Than the Current Number
17 136 Easy Single Number Single Number
18 268 Easy Missing Number Missing Number
19 2489 Medium Append Characters to String to Make Subsequence Append Characters to String to Make Subsequence
20 260 Medium Single Number III Single Number III
21 287 Medium Find the Duplicate Number Find the Duplicate Number
22 3151 Easy Special Array I Special Array I
23 330 Hard Patching Array Patching Array
24 238 Medium Product of Array Except Self Product of Array Except Self
25 1913 Easy Maximum Product Difference Between Two Pairs Maximum Product Difference Between Two Pairs
26 1859 Easy Sorting the Sentence Sorting the Sentence
27 35 Easy Search Insert Position Search Insert Position
28 830 Easy Positions of Large Groups Positions of Large Groups
29 643 Easy Maximum Average Subarray I Maximum Average Subarray I
30 3011 Easy Find if Array Can Be Sorted Find if Array Can Be Sorted
31 1748 Easy Sum of Unique Elements Sum of Unique Elements
32 2114 Easy Maximum Number of Words Found in Sentences Maximum Number of Words Found in Sentences
33 2185 Easy Counting Words With a Given Prefix Counting Words With a Given Prefix
34 2255 Easy Count Prefixes of a Given String Count Prefixes of a Given String
35 2496 Easy Maximum Value of a String in an Array Maximum Value of a String in an Array
36 41 Hard First Missing Positive First Missing Positive

Stack

S# Question# Difficulty Questions Solutions
01 1441 Medium Build an Array With Stack Operations Build an Array With Stack Operations
02 2390 Medium Removing Stars From a String Removing Stars From a String
03 844 Easy Backspace String Compare Backspace String Compare
04 3174 Easy Clear-digits Clear-digits
05 1544 Easy Make The String Great Make The String Great
06 1081 Medium Smallest Subsequence of Distinct Characters Smallest Subsequence of Distinct Characters
07 1209 Medium Remove All Adjacent Duplicates in String II Remove All Adjacent Duplicates in String II

Two Pointers

S# Question# Difficulty Questions Solutions
01 283 Easy Move Zeroes Move Zeroes
02 917 Easy Reverse Only Letters Reverse Only Letters
03 26 Easy Remove Duplicates from Sorted Array Remove Duplicates from Sorted Array
04 219 Easy Contains Duplicate II Contains Duplicate II

Linked List

S# Question# Difficulty Questions Solutions
01 876 Easy Middle node of the linked list Middle node of the linked list
02 206 Easy Reverse Linked List Reverse Linked List
03 83 Easy Remove Duplicates from Sorted List Remove Duplicates from Sorted List
04 203 Easy Remove Linked List Elements Remove Linked List Elements

Dynamic Programming

S# Question# Difficulty Questions Solutions
01 1671 Hard Minimum Number of Removals to Make Mountain Array Minimum Number of Removals to Make Mountain Array