129k views
0 votes
The method Sum listed below returns the sum of integers between 1 and n. What is its order of growth? Create a new method that performs the same function that is a lower order of growth.public int Sum (int n) { int total = 0; for (i = 1; I < n; i++) total = total + i; return total;}

User Leebrandt
by
7.2k points

1 Answer

1 vote
tell me why i got this question got it right and now won’t remember but i’ll get back at you when i remember
User Irzhy
by
7.2k points