Q. What is the time complexity of Kadane’s algorithm?

  • (A) o(1)
  • (B) o(n)
  • (C) o(n2)
  • (D) o(5)
πŸ’¬ Discuss
βœ… 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