Q. What is the space complexity of the divide and conquer algorithm used to find the maximum sub-array sum?

  • (A) o(n)
  • (B) o(1)
  • (C) o(n!)
  • (D) o(n2)
πŸ’¬ Discuss
βœ… Correct Answer: (B) o(1)
Explanation: the divide and conquer algorithm uses a constant space. so, the space complexity is o(1).

Explanation by: Mr. Dubey
the divide and conquer algorithm uses a constant space. so, the space complexity is o(1).

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
360
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate