Hey, I was trying this problem but unfortunately, I’m not able to solve it completely, I’m stuck with 2 test cases unpassed, here is the code I tried, could you help me in solving this by either correcting my code(please add comments, so that it hits me where I got wrong) or helping me with a approach, i used Binary search, divide and conquer approach btw
Thanks!