public double maxValueAfter(int v, List<double> l) { // no constraints. // We choose as max a value very unlikely to be exceeded. return 3; }