Engineer Software Interview Questions

512,496 engineer software interview questions shared by candidates

Given an infinite number of bricks of given weights w (say w = [1, 2]) and a truck of capacity c (say, c = 3), how would you find all possible combinations of bricks that match the capacity exactly? Duplicates such as [1,2] and [2,1] are NOT allowed.
avatar

Software Engineer

Interviewed at Pocket Gems

4.2
Oct 5, 2013

Given an infinite number of bricks of given weights w (say w = [1, 2]) and a truck of capacity c (say, c = 3), how would you find all possible combinations of bricks that match the capacity exactly? Duplicates such as [1,2] and [2,1] are NOT allowed.

Viewing 2421 - 2430 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 512,496 interview questions and reports from Engineer software interviews. Prepare for your interview. Get hired. Love your job.