complexity | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

complexity

How to calculate time complexity of an algorithm need help ❤️

14th Jan 2020, 3:54 PM
Yassine
Yassine - avatar
2 Antworten
14th Jan 2020, 4:25 PM
HonFu
HonFu - avatar
0
If you use x nested for loops with each n iterations your complexity is O(n ^ x) for example. Your O complexity is always definded by the worst/slowest part in your code
14th Jan 2020, 4:39 PM
Jnn
Jnn - avatar