What is the time complexity for the most efficient algorithm to find the sum of contiguous subarray within a one-dimensional array of integers which has the largest sum?

NOTE:
Auxiliary space complexity is O(1).

1
O(n)
2
O(n2)
3
O(n logn)
4
O(n2  logn)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation