1/*2Logic Here used is:3- we need to find, max no of floors soluiton can be found with K egg by using m4move5- recursion will use like to find m moves no of floor count we need to add6dp[m-1][k-1] & dp[m-1][k];78*/910class Solution {11public:12int superEggDrop(int k, int n) {13vector<int> dp(k + 1, 0);14int m = 0;15while (dp[k] < n) {16m++;17for (int i = k; i >= 1; --i) {18dp[i] = dp[i] + dp[i - 1] + 1;19}20}21return m;22}23};