mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Add Test case for EggDropping (#3687)
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user