Juniper | SDE | 3 December
Juniper · Question · Posted Apr 2020
Given an array A consisting of 'n' flask requirements and 'm' type of flasks where each flask comes with multiple capacities. Requirement array A=[2, 3, 6, 8, 10] and 2 flasks: [ [3, 8, 12] , [4, 7] ]. Here 1st flask comes in 3 capacities and 2nd flask comes in 2 capacities. You can choose only one type of flask to satisfy all the requirements in array A. Eg if you choose 1st flask then you have : '3' ...
The full answer & interview discussion are available to premium members.
Log in Create a free account