... k eggs and n floors dp.resize(k + 1, vector<int>(n + 1, -1)); return drop(k, ... if (k == 1) // One egg -> drop from 1-th floor to n-th floor return n; ...
確定! 回上一頁