Skip to content

Instantly share code, notes, and snippets.

@r34117y
Created August 8, 2017 22:05
Show Gist options
  • Save r34117y/cd1d8036b3a06460b3e7b043c3706a52 to your computer and use it in GitHub Desktop.
Save r34117y/cd1d8036b3a06460b3e7b043c3706a52 to your computer and use it in GitHub Desktop.
Two egg problem.
/**
* Example of Minimization of Maximum Regret
*
*/
class EggProblem {
public function __construnct(int $OfFloors = 100, int $nOfEggs = 2)
{
this->nOfFloors = $nOfFloors;
this->nOfEggs = $nOfEggs
}
public function computeSolution() : int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment