leetcode
leetcode copied to clipboard
Updated solution using Binary Search approach
This approach provides the better time complexity of 0(log n).