+ 1

What us complexity in programming ?

Complexity important thing to notice while coding. Give your opinion

1st Dec 2018, 8:06 PM
Unique Sharma
Unique Sharma - avatar
1 Réponse
+ 1
this is how many operations does your program take to caculate something for example for (...){...} has time complexity O(n) or for(...){ for(...) {...} } has O(n^2) or "for(...) {...} for(...) {...}" gives O(n) because n+n is 2n and O(2n) is O(n)- constant calues are neglected Hope I answered your question
2nd Dec 2018, 12:30 PM
Joseph
Joseph - avatar