Group Items from Conveyor Belt into Triplets
Given a list of floating point numbers representing items and a distance d, group the items into triplets where all items in a triplet are within distance d of each other. The order of items should be maintained and no extra data structures should be used.
Asked at:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late October, 2024
Intern
Group items from a conveyor belt into triplets within a given distance. Given a list of floating point numbers representing items and a distance d, group the items into triplets where all items in a triplet are within distance d of each other. The order of items should be maintained and no extra data structures should be used.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.