Skip to content

Latest commit

 

History

308 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Problem Solutions

This repository contains my solutions to various LeetCode problems that I solve during my practice sessions.

📚 About

  • ✍️ Each file corresponds to a single LeetCode problem solution.
  • 📄 Solutions are uploaded as I solve them — no strict folder structure.
  • 🧠 Focused on improving problem-solving skills and algorithmic thinking.

🛠️ Languages Used

  • Python (mainly)
  • (Other languages may be added over time)

🚀 How to Use

  1. Clone the repository:
    git clone https://github.com/Minhaj401/Leetcode.git

Browse through the files.

Each file is typically named after the problem title.

🌟 Notes

  • Solutions are self-written unless otherwise mentioned.
  • Some problems might include multiple approaches inside the same file.
  • Code is tested against LeetCode test cases.
  • If a solution isn't optimal, feel free to open a discussion or issue!

📬 Contact

LeetCode Topics

Stack

0071-simplify-path
0094-binary-tree-inorder-traversal
0581-shortest-unsorted-continuous-subarray
0844-backspace-string-compare
1021-remove-outermost-parentheses
1544-make-the-string-great
3174-clear-digits

Tree

0094-binary-tree-inorder-traversal

Depth-First Search

0094-binary-tree-inorder-traversal

Binary Tree

0094-binary-tree-inorder-traversal

Array

0015-3sum
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0075-sort-colors
0217-contains-duplicate
0581-shortest-unsorted-continuous-subarray
0628-maximum-product-of-three-numbers
0704-binary-search
0881-boats-to-save-people
0948-bag-of-tokens
0961-n-repeated-element-in-size-2n-array
1051-height-checker
1331-rank-transform-of-an-array
1637-widest-vertical-area-between-two-points-containing-no-points
2079-watering-plants
2105-watering-plants-ii
2545-sort-the-students-by-their-kth-score
2610-convert-an-array-into-a-2d-array-with-conditions
3974-maximum-total-sum-of-k-selected-elements

Sorting

0015-3sum
0016-3sum-closest
0075-sort-colors
0217-contains-duplicate
0581-shortest-unsorted-continuous-subarray
0628-maximum-product-of-three-numbers
0881-boats-to-save-people
0948-bag-of-tokens
1051-height-checker
1331-rank-transform-of-an-array
1637-widest-vertical-area-between-two-points-containing-no-points
2545-sort-the-students-by-their-kth-score
3974-maximum-total-sum-of-k-selected-elements

String

0071-simplify-path
0345-reverse-vowels-of-a-string
0387-first-unique-character-in-a-string
0415-add-strings
0844-backspace-string-compare
1021-remove-outermost-parentheses
1544-make-the-string-great
2351-first-letter-to-appear-twice
3110-score-of-a-string
3174-clear-digits

Two Pointers

0015-3sum
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0075-sort-colors
0202-happy-number
0345-reverse-vowels-of-a-string
0581-shortest-unsorted-continuous-subarray
0844-backspace-string-compare
0881-boats-to-save-people
0948-bag-of-tokens
2105-watering-plants-ii

Greedy

0581-shortest-unsorted-continuous-subarray
0881-boats-to-save-people
0948-bag-of-tokens
3974-maximum-total-sum-of-k-selected-elements

Hash Table

0202-happy-number
0217-contains-duplicate
0387-first-unique-character-in-a-string
0961-n-repeated-element-in-size-2n-array
1331-rank-transform-of-an-array
2351-first-letter-to-appear-twice
2610-convert-an-array-into-a-2d-array-with-conditions

Monotonic Stack

0581-shortest-unsorted-continuous-subarray

Math

0070-climbing-stairs
0202-happy-number
0231-power-of-two
0415-add-strings
0507-perfect-number
0628-maximum-product-of-three-numbers
0728-self-dividing-numbers
1025-divisor-game

Matrix

2545-sort-the-students-by-their-kth-score

Simulation

0415-add-strings
0844-backspace-string-compare
2079-watering-plants
2105-watering-plants-ii
3174-clear-digits

Database

0175-combine-two-tables
0181-employees-earning-more-than-their-managers

Pigeonhole Principle

0961-n-repeated-element-in-size-2n-array

Floyd's Cycle Finding Algorithm

0202-happy-number

Dynamic Programming

0070-climbing-stairs
1025-divisor-game

Brainteaser

1025-divisor-game

Game Theory

1025-divisor-game

Impartial Game

1025-divisor-game

Bit Manipulation

0191-number-of-1-bits
0231-power-of-two
2351-first-letter-to-appear-twice

Recursion

0231-power-of-two

Divide and Conquer

0191-number-of-1-bits

Memoization

0070-climbing-stairs

Queue

0387-first-unique-character-in-a-string
0933-number-of-recent-calls

Counting

0387-first-unique-character-in-a-string
2351-first-letter-to-appear-twice

Linked List

0083-remove-duplicates-from-sorted-list

Binary Search

0704-binary-search

Bracket Sequences

1021-remove-outermost-parentheses

Counting Sort

1051-height-checker

Bubble Sort

1051-height-checker

Design

0933-number-of-recent-calls

Data Stream

0933-number-of-recent-calls

Timsort

0881-boats-to-save-people

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages