Sail E0 Webinar
Question
What is the space complexity of Kadane's algorithm?
Options:
A .  O(1)
B .  O(n)
C .  O(n2)
D .  None of the mentioned
Answer: Option A


Kadane's algorithm uses a constant space. So, the space complexity is O(1).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers