Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

himanchal-103/Dynamic-programming-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

Dynamic Programming Problems

This repository serves as a personal reference and learning resource for mastering DP techniques such as memoization, tabulation, and space optimization.

File Content

Dynamic programming is a fundamental concept in algorithm design that is beneficial for solving problems with overlapping subproblems and optimizing substructures. This repository contains:

  • Recursive approach
  • Top-down (Recursive + Memoization) approach
  • Bottom-up (Tabulation) approach
  • Optimized versions with reduced space complexity (if possible)
  • Clear comments and code organization for better understanding

Topics Covered

  • Fibonacci series
  • Minimum cost of climbing stairs
  • Minimum number of coins
  • Maximum sum of non-adjacent elements in array or list
  • Cut the rod into segment of length x, y, x.
  • Count derangements
  • Painting fence algorithm
  • Knapsack problem
  • Combination sum problem
  • Perfect square
  • Minimum cost for tickets
  • Largest square area in matrix
  • Minimum score triangulation of polygon
  • Minimum sideways jumps
  • Reducing dishes
  • Longest increasing subsequence
  • Maximum height by stacking cuboids
  • Pizza with 3n slices
  • Number of dice rolled with target sum
  • Partition equal subset sums
  • Minimum swaps to make sequence increasing
  • Longest arithmetic sequence

About

This repository serves as a personal reference and learning resource for mastering DP techniques such as memoization, tabulation, and space optimization.

Topics

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages