Salesforce interview question

A problem based on binary search + divide and conquer

Interview Answer

Anonymous

7 Jan 2019

It was an interesting question, the solution was easy but had to optimize it till the very end. Ended with the above approach