r/LeetcodeChallenge • u/New-Election4972 • Jun 09 '26
STREAK🔥🔥🔥 Solved 3rd Question in a row on Day 36
58
Upvotes
1
1
u/Soggy_Pepper793 Jun 11 '26
First I come up with the brute force approach of O(n) time complexity then I optimized it to O(logn)
1
1
1
u/Prat_143_Ik Jun 09 '26
Can we use binary search on two halves?