Dynamic Programming

Dynamic Programming

Dice Game – TCS CodeVita

Tanu and Shree are friends. They love playing dice games. They also like to experiment and invent new things. They have invented a mechanism…

Pet Store Dogs

There are N dogs in a pet store. The pet store wants to keep the N dogs in cages.There can be two dogs in each cage. A dog can be eitheir…

Selling Wine Bottles

There are N wine bottles packed and arranged in a row from left to right. The wine bottles can be sold only one per year with a…

DP – Maximum Sum Subarray

An array of N integers (both positive and negative) is given as the input to the program. The program must print the maximum sum of the…

Subscribe to our Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨