Add Test case for EggDropping (#3687)

This commit is contained in:
Nandini Anagondi
2022-10-27 23:22:45 +05:30
committed by GitHub
parent 703c60fa7a
commit b2393d62a0
2 changed files with 29 additions and 1 deletions

View File

@ -6,7 +6,7 @@ package com.thealgorithms.dynamicprogramming;
public class EggDropping {
// min trials with n eggs and m floors
private static int minTrials(int n, int m) {
public static int minTrials(int n, int m) {
int[][] eggFloor = new int[n + 1][m + 1];
int result, x;