← Google questions

Select and pair cartons from an incoming stream within difference 'd'

Filed under Google

From an incoming stream of cartons, choose three cartons ensuring the difference between any two is not more than a given value 'd'. Maintain elements using a queue or sliding window structure to form…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.