McqMate
| 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) |
| Answer» B. o(1) | |
| Explanation: the divide and conquer algorithm uses a constant space. so, the space complexity is o(1). | |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet