Veeva·Frontend Engineer·Technical Phone Screen
May 2026
Veeva frontend interview had a math-flavored coding problem that felt a bit out of left field for a frontend role. Short round, one question, pretty straightforward if you remember your geometry.
- Implement a function approx(pts) that estimates pi using the Monte Carlo method. You're given an array of random [x, y] points in the unit square, and you need to return an approximation of pi based on how many points fall inside a quarter circle of radius 1.
“The math is simple once you remember that x^2 + y^2 <= 1 is the condition for being inside the quarter disk.”