12,757,390 members (39,748 online)
Rate this:
See more:
What is The order of adding 1 to each element in a one dimensional array of integers.
Posted 9-Nov-12 0:29am
OriginalGriff 9-Nov-12 6:02am

This is not a good question - we cannot work out from that little what you are trying to do.
For example, what does a 1D array have to do with trees, searching, or TreeListView?
Use the "Improve question" widget to edit your question and provide better information.

Rate this:

## Solution 1

If you are talking about the big O notations then

IMHO, since we need to traverse all the array to get the handle of all the elements and update them. so the order should be equal to number of elements i.e. `O(n)`.

P.S. if you are not expecting the Big O notation order then please ignore this answer and try rephrasing the question.

Top Experts
Last 24hrsThis month
 Graeme_Grant 727 Jochen Arndt 245 Karthik Bangalore 159 OriginalGriff 153 ppolymorphe 126
 OriginalGriff 4,157 Peter Leow 3,209 Karthik Bangalore 2,529 ppolymorphe 2,524 Graeme_Grant 2,251