This repository provides direct links to LeetCode questions along with sample Python solutions. Itβs designed to help you practice coding, strengthen your grasp of algorithms and data structures, and get interview-ready.
- Problem Number & Title β for easy reference.
- LeetCode Problem Link β direct access to the challenge.
# | Problem | LeetCode Link | Solution |
---|---|---|---|
1 | Fizz Buzz | π Link | q01.py |
2 | Majority Element | π Link | q02.py |
3 | Fibonacci Number | π Link | q03.py |
4 | Roman to Integer | π Link | q04.py |
5 | Contains Duplicate | π Link | q05.py |
6 | Length of Last Word | π Link | q06.py |
7 | Move Zeroes | π Link | q07.py |
8 | Valid Parentheses | π Link | q08.py |
9 | Two Sum | π Link | q09.py |
10 | Remove Element | π Link | q10.py |
11 | Merge Sorted Array | π Link | q11.py |
12 | Middle of the Linked List | π Link | q12.py |
13 | Find Smallest Letter Greater Than Target | π Link | q13.py |
14 | Excel Sheet Column Title | π Link | q14.py |
15 | Happy Number | π Link | q15.py |
16 | Score of a String | π Link | q16.py |
17 | Plus One | π Link | q17.py |
18 | Insert Greatest Common Divisors in Linked List | π Link | q18.py |
19 | Build Array from Permutation | π Link | q19.py |
20 | Find Words Containing Character | π Link | q20.py |
21 | Concatenation of Array | π Link | q21.py |
22 | Defanging an IP Address | π Link | q22.py |
23 | Number of Good Pairs | π Link | q23.py |
24 | Add Digits | π Link | q24.py |
25 | Minimum Number Game | π Link | q25.py |
26 | Check if the Sentence Is Pangram | π Link | q26.py |
27 | Maximum Number of Words Found in Sentences | π Link | q27.py |
28 | Count the Digits That Divide a Number | π Link | q28.py |
29 | Find First Palindromic String in the Array | π Link | q29.py |
30 | Number of Employees Who Met the Target | π Link | q30.py |
31 | Sum Multiples | π Link | q31.py |
32 | XOR Operation in an Array | π Link | q32.py |
33 | Divisible and Non-divisible Sums Difference | π Link | q33.py |
34 | Number of Changing Keys | π Link | q34.py |
35 | Final Value of Variable After Performing Operations | π Link | q35.py |
36 | Smallest Even Multiple | π Link | q36.py |
37 | Climbing Stairs | π Link | q37.py |
38 | Best Time to Buy and Sell Stock | π Link | q38.py |
39 | Squares of a Sorted Array | π Link | q39.py |
40 | Find the Maximum Achievable Number | π Link | q40.py |
41 | Subtract the Product and Sum of Digits of an Integer | π Link | q41.py |
42 | Three Consecutive Odds | π Link | q42.py |
43 | Sign of the Product of an Array | π Link | q43.py |
44 | Baseball Game | π Link | q44.py |
45 | Robot Return to Origin | π Link | q45.py |
46 | Find if Digit Game Can Be Won | π Link | q46.py |
47 | Reverse Vowels of a String | π Link | q47.py |
48 | Can Place Flowers | π Link | q48.py |
49 | Kids With the Greatest Number of Candies | π Link | q49.py |
50 | Reverse Words in a String | π Link | q50.py |
51 | Product of Array Except Self | π Link | q51.py |
52 | Is Subsequence | π Link | q52.py |
53 | Container With Most Water | π Link | q53.py |
54 | Find the Middle Index in Array | π Link | q54.py |
55 | Find the Difference of Two Arrays | π Link | q55.py |
56 | Unique Number of Occurrences | π Link | q56.py |
57 | Find Pivot Index | π Link | q57.py |
58 | Delete the Middle Node of a Linked List | π Link | q58.py |
59 | Maximum Area of Longest Diagonal Rectangle | π Link | q59.py |
60 | Find Closest Person | π Link | q60.py |
61 | Partition Array According to Given Pivot | π Link | q61.py |
62 | Convert Integer to the Sum of Two No-Zero Integers | π Link | q62.py |
- Clone the repository
git clone https://github.com/abhi5455/Leetcode_Practice_Questions.git