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



 360

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
39.948
Posts
13.047
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: 81QoXii.gif]
[Image: PUm4fxA.gif]

 
                                                      
Above Services are Paid Advertisement
This post is by a banned member (eariel) - Unhide
eariel  
Galactic
51.879
Posts
19.127
Threads
3 Years of service
#2
let me learn code and ill come back to you
[Image: 81QoXii.gif]
 
[Image: wolfbet-signature.gif]
23/12/24
[Image: VnAY0bL.png]
This post is by a banned member (TimeChangeEverything) - Unhide
39.948
Posts
13.047
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: 81QoXii.gif]
[Image: PUm4fxA.gif]

 
                                                      
Above Services are Paid Advertisement
This post is by a banned member (HansyNtheBrain) - Unhide
1.994
Posts
225
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)