[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.14513311 [DELETED]  [View]
File: 86 KB, 1273x625, onotation.jpg [View same] [iqdb] [saucenao] [google]
14513311

Am i retarded or is the course retarded?
Question is in the picture, supposed solution is O(n^2) since the outer for loop takes n steps and the inner one takes n^2 + n, so the total result is n^2 + 2n

But shouldnt it be n * (n^2 + n) ?? since the inner loop is called n times?

Navigation
View posts[+24][+48][+96]