Anthropic·Software Engineer·Technical Phone Screen
- Given m input images and n processing pipelines (each an ordered sequence of operations like resize, rotate, crop, etc.), write a function that applies every pipeline to every image and outputs all m*n results efficiently. The interface should read images from file paths and write outputs to a directory with deterministic naming.
- How would you scale this image processing system for very large values of m and n, and what parallelization strategy would you choose?
“My first instinct was to just nest two loops and call it a day, and they let me write that out before asking how I'd handle scale.”