big-o tag

7 questions


2 answers
58 views
0
Java Problems: Building a Number Pyramid

Hello, I'm asking you a question because I didn't like my code while doing my assignment.The questions you gave me are as follows.Develop a JAVA-program that does the following job: Your program shall...

1 years ago

1 answers
63 views
0
Python Programming Contest Questions

I'm preparing to participate in the programming competitionThere's a site where you can test it in advance, so I tested itI got a perfect score for accuracy, but I didn't get a single score for effici...

1 years ago

1 answers
97 views
0
Spatial Complexity and Big O notation

While studying, I found the expression ~~using O(n) storage.Since this is Big O storage, wouldn't it be related to spatial complexity? That's what I thought We did some research on the complexity of s...

1 years ago


1 answers
96 views
0
Questions about Big O notation

for (i=0; i<n/2; ++i) for (j=0; j<n*2; j++) for (k=0; k<100; k++) m++;How do you represent this code in Big Five notation?

1 years ago

1 answers
61 views
0
I'd like to ask you about the time complexity of data structure

In an algorithm with time complexity of O(n2), if the number of inputs has doubled, what trend does the execution time increase?2)'s From this (2n)2 = 4n2 22Is this four times the answer? I keep getti...


1 answers
78 views
0
Is the initialization part included when calculating the loop-type time?

I'm a soldier who takes a data rescue class by himself.Honestly, I wonder why I'm asking this question myself,I'm asking you a question to get an answer.Suppose the for statement is as follows.for( i ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.