β
Correct Answer: (B)
o(n)
Explanation: the time complexity of kadane’s algorithm is o(n) because there is only one for loop which scans the entire array exactly once.
Explanation by: Mr. Dubey
the time complexity of kadane’s algorithm is o(n) because there is only one for loop which scans the entire array exactly once.
Discussion
Question Analytics
1025
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
89%
Success Rate