

MCQOPTIONS
Saved Bookmarks
1. |
What is the time complexity of the following naive method used to find the maximum sub-array sum in an array containing n elements? |
A. | O(n2) |
B. | O(n) |
C. | O(n3) |
D. | O(1)View Answer |
Answer» B. O(n) | |