Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 330

What is the time, and space complexity of the following code

by TimeChangeEverything - 23 July, 2022 - 05:44 AM
This post is by a banned member (TimeChangeEverything) - Unhide
36.352
Posts
10.756
Threads
5 Years of service
#1
@Solve Solve this please PepeBlush
 
Code:
 
int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
[Image: 7SEJ6Cj.gif]
[Image: PUm4fxA.gif]

 
                                                      
Above Services are Paid Advertisement
This post is by a banned member (eariel) - Unhide
eariel  
Galactic
47.724
Posts
17.786
Threads
3 Years of service
#2
let me learn code and ill come back to you
[Image: 81QoXii.gif]
 
[Image: SoTjj.gif]
23/9/24
[Image: tokyo-1.gif]
4/10/24
This post is by a banned member (TimeChangeEverything) - Unhide
36.352
Posts
10.756
Threads
5 Years of service
#3
(23 July, 2022 - 05:45 AM)solve Wrote: Show More
let me learn code and ill come back to you

that's the spirit  Hype
[Image: 7SEJ6Cj.gif]
[Image: PUm4fxA.gif]

 
                                                      
Above Services are Paid Advertisement
This post is by a banned member (HansyNtheBrain) - Unhide
1.998
Posts
224
Threads
5 Years of service
#4
The answer is their is to much continuum Kappa
[Image: Lite-Speed3-50.gif]

[Image: oYi2hJn.png]
 
 

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)