β
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
1017
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
88%
Success Rate