You are given n number of eggs and you have K floors. You need to find out the minimum number of trials in worst case

# Tag: Arrays

## Number of ways to reach N’th stair (DP-17)

Count the number of ways to reach N’th stair starting from 0th staircase if you can take a jump of 1, 2 or 3 stairs

## Activity Selection Problem (DP-16)

You are given a set of activities and their start and end times. You need to find out the maximum number of activities that a

## Longest Increasing Sub-sequence (DP-15)

You are given an array of non-negative integers. You need to find the length of the longest subsequence which has all the elements sorted in

## Minimum path sum (DP-14)

You are given an m x n matrix filled with non-negative integers, you need to find a path from top left to bottom right of

## Maximum size square sub-matrix (DP-13)

You are given a binary matrix with 0’s and 1’s. You need to find out the maximum size of a square with all 1’s in