ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the time complexity of Kadane's algorithm?
Correct Answer: B — O(n)
The time complexity of Kadane's algorithm is O(n) because there is only one for loop which scans the entire array exactly once.