Groups with H/core(H) satisfying max or min for all subgroups H