🔒 Closed Time and Space Complexity

Status
Not open for further replies.

likoretz

Established
Pa help naman po sa formula and answer

1. int sum(int x, int y, int z)
{
int ans = x + y + z;
return ans;
}
2. int sum(int v[ ], int n)
{
int r = 0;
for (int i = 0; i < n; ++i)
{
r += v;
}
return r;
}
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 251
    Views
  • 5
    Participants
Last reply from:
pixkit

Online now

Members online
952
Guests online
3,003
Total visitors
3,955

Forum statistics

Threads
2,276,136
Posts
28,967,815
Members
1,231,128
Latest member
Dedegodskga
Back
Top