The problem is not clear to me. How can an algo exist that takes O(n) space but only O(log n) time? Even just to access the O(n) memory, we need O(n) time. For example in the above algo, if i = 1 and j = n, then how can the sum be obtained in O(log n) time?
- [algogeeks] Re: Sum of sub array pramod
- [algogeeks] Re: Sum of sub array Mattia Merzi
- [algogeeks] Re: Sum of sub array phoenixinter
- [algogeeks] Re: Sum of sub array Vikram Venkatesan
- [algogeeks] Re: Sum of sub array [EMAIL PROTECTED]
- [algogeeks] Re: Sum of sub array SPX2
- [algogeeks] Re: Sum of sub array JeffCameron
