A

Admin • 833K Points
Coach

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

  • (A) o(1)
  • (B) o(n)
  • (C) o(n2)
  • (D) none of the mentioned

Explanation by: Admin

kadane’s algorithm uses a constant space. so, the space complexity is

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.