Skip to content

A curated collection of the Top 50 Dynamic Programming problems from LeetCode, solved in Python. Each file includes a clean, optimized solution to help strengthen core DP concepts like recursion, memoization, tabulation, and space optimization. Perfect for interview prep and mastering DP patterns.

License

Notifications You must be signed in to change notification settings

Adit-Mugdha-das/LeetCode-Top-50-DP-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi there , I am Mugdha!

Welcome to my repository of LeetCode Top 50 Dynamic Programming Solutions – a personal collection of Python solutions to help you (and me!) master one of the most fundamental areas in algorithmic problem solving.


LeetCode Top 50 Dynamic Programming Solutions

This repository contains my Python solutions to the Top 50 Dynamic Programming problems from LeetCode’s official study plan.
It covers a broad range of essential DP patterns used in interviews at top tech companies.

Each solution is clean, optimized, and structured for easy understanding and revision.


Topics Covered

  • Fibonacci Style
  • Matrix DP
  • On Strings
  • Longest Increasing Subsequence
  • Longest Common Subsequence
  • Best Time to Buy & Sell Stock / State Machine
  • On Trees
  • Knapsack (0/1)
  • General 1D DP

Project Structure

  • Each problem is saved in a separate .py file.
  • File names follow the format: ##-Problem Title.py
  • Example: 01-Climbing Stairs.py

Language

All solutions are written in Python 3, with comments and clear logic where needed.


Solved By

Adit Mugdha Das
B.Sc. in Computer Science & Engineering
Khulna University of Engineering & Technology (KUET)
GitHub: github.com/Adit-Mugdha-das
LeetCode: leetcode.com/Mugdha_118


If this repository helped you or inspired you, don’t forget to star it!

About

A curated collection of the Top 50 Dynamic Programming problems from LeetCode, solved in Python. Each file includes a clean, optimized solution to help strengthen core DP concepts like recursion, memoization, tabulation, and space optimization. Perfect for interview prep and mastering DP patterns.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages