MathWorks interview question

Basic question that used binary search

Interview Answer

Anonymous

2 Dec 2024

I was able to solve it using brute force, but didn't get the time to solve it using binary search.