Fetching algorithms...
nums = [1, 3, 5, 7, 9, 11], left = 1, right = 4
24
nums = [1, 2, 3], left = 0, right = 2
6
nums = [-2, 0, 3, -5, 2, -1], left = 0, right = 5
-3
Time Complexity
Space Complexity