Write a generalized function to use buckets of sizes b1, b2 .. bn to measure a capacity c
Constraints -
1. the buckets are not marked on smaller sizes.
2. the buckets can be filled from an unlimited supply of water from a sink
How would we approach this problem? I may not have done well on this interview, haven't gotten the results back yet
Technical Phone screen | L4 | Google | USA