Kurse
AnmeldenBeginne KI zu lernen
Kurse
AnmeldenBeginne KI zu lernen
+ 1

Running time

https://code.sololearn.com/c21nevWfICla/?ref=app my code is running on O(n²) or on O(n³)? The inner 2 for loops take O(n²) I know that but does the first for loop makes it O(n³)? Or has no effect?

c++timecomplexity
25th Aug 2021, 6:19 PM
HK Lite
HK Lite - avatar
1 Antwort

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes
Asking for final year project ideas!
1 Votes
How does JavaScript's event loop handle asynchronous operations like setTimeout, Promises, and async/await, and what are the dif
1 Votes
есть кто на русском разговаривает?
0 Votes