Company: Netradyne
Difficulty: medium
Hiring Drive Max. score: 50.00 A startup is staffing a project that needs exactly N front-end engineers and exactly M back-end engineers, and it has received applications from exactly (N+M) candidates. Conditions Each candidate can be placed on only one of the two tracks - front end or back end, never both. Candidates quote different rates depending on the track. For the i th candidate: Front-end rate: F i dollars. Back-end rate: B i dollars. Report the lowest total spend needed to staff the project fully. Function Description Complete the solve function. It takes the following 4 parameters and must return the minimum total cost of staffing the project as described: N : the number of front-end engineers the project needs M : the number of back-end engineers the project needs F : an array of each candidate's front-end rate B : an array of each candidate's back-end rate Input Format for Custom Testing Note: Use this input format if you are testing against custom input or writing code in