Skip to content

farheenimam/LeetCode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

A collection of my solutions to LeetCode problems. This repository is aimed at acing coding interviews by practicing problems from different topics and difficulty levels.

I regularly solve new questions and push updates, so the repo will keep growing over time.


📂 Repository Structure

The solutions are organized by topics, making it easier to focus on specific areas during interview preparation.

Some of the covered topics include:

  • Arrays
  • Strings
  • Hashing
  • Two Pointers
  • Sliding Window
  • Linked List
  • Binary Trees
  • Dynamic Programming
  • Graphs
  • Greedy Algorithms

(and more coming soon!)


💻 Languages Used

  • Python 🐍
  • Java ☕
  • C++ 💡

(I may add solutions in other languages too as I practice more.)


🚀 Goals

  • Solve at least a few problems daily to stay consistent.
  • Cover a wide range of easy, medium, and hard problems.
  • Build a strong foundation for technical interviews.

📌 How to Use

  1. Browse through the folders/topics.
  2. Open the question file to view my solution.
  3. Run the code in your preferred IDE/LeetCode environment.
  4. Practice, tweak, and learn!

⭐ Contribute / Support

  • If you find this repo helpful, don’t forget to star ⭐ the repo!
  • You can also fork it to keep your own notes and solutions.
  • Suggestions are welcome through issues or pull requests.

LeetCode Topics

Array

0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy
0189-rotate-array
0238-product-of-array-except-self
0274-h-index
0275-h-index-ii
0380-insert-delete-getrandom-o1

Two Pointers

0042-trapping-rain-water
0189-rotate-array

Dynamic Programming

0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii

Stack

0042-trapping-rain-water

Monotonic Stack

0042-trapping-rain-water

Greedy

0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy

Prefix Sum

0238-product-of-array-except-self

Hash Table

0380-insert-delete-getrandom-o1

Math

0189-rotate-array
0380-insert-delete-getrandom-o1

Design

0380-insert-delete-getrandom-o1

Randomized

0380-insert-delete-getrandom-o1

Binary Search

0275-h-index-ii

Sorting

0274-h-index

Counting Sort

0274-h-index

About

I have put together all the solutions of the questions I have attempted on LeetCode with the proper explanation. Will be uploading more of my solutions in the future

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors