mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 21:43:15 +08:00
updated
proper spacing
This commit is contained in:
@ -38,8 +38,8 @@ public class EggDropping
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return eggFloor[n][m];
|
|
||||||
|
|
||||||
|
return eggFloor[n][m];
|
||||||
}
|
}
|
||||||
|
|
||||||
//testing program
|
//testing program
|
||||||
@ -47,7 +47,6 @@ public class EggDropping
|
|||||||
{
|
{
|
||||||
int n = 2, m = 4;
|
int n = 2, m = 4;
|
||||||
//result outputs min no. of trials in worst case for n eggs and m floors
|
//result outputs min no. of trials in worst case for n eggs and m floors
|
||||||
|
|
||||||
int result = minTrials(n, m);
|
int result = minTrials(n, m);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user