Position: SDE2
There are two source code repositories app01 and app02 which gets deployed at 7 PM in production every day .
You are given below function to deploy the code from app01 and app02 in production up-to a given commit id.
boolean deploy(int commitId_app01, int commitId_app02)
if we call deploy(10, 12) then every commit from id 1 to 10 from app01 and every commit from 1 to 12 from app02 will be deployed in production
and the function will return either true if deployment is successful or false if deployment failed .
A deployment is made (i.e deploy(n, m)) and deployment failed because of a faulty commit you need to write an algorithm to find the faulty commit
using the deploy method in least number of deployments.