1p3a Experience · Sep 2025

Glean Tech Phone Screen Problem: Document Processing and Node Allocation

SWE Phone Screen
2 replies

Interview Experience

Given m nodes and x documents, input two vectors: the first represents the absolute processing time for each document, and the second represents the processing duration for each document. Iterate thro

Full Details

Given m nodes and x documents, input two vectors: the first represents the absolute processing time for each document, and the second represents the processing duration for each document. Iterate through each document, prioritizing the node corresponding to (x_i % m) of that document. If another document is still being processed, continue searching to the right; if no node is found, the document is considered a failure. Find: the number of successfully processed documents and the top k contributing nodes.

Free preview. Unlock all questions →