Frage im Vorstellungsgespräch bei Apple

constrained convex optimization problem to explain and code and get the answer