Dec-23-2022, 04:12 PM
Hello, after an argumant I would like to get answer from people who know about that bigO
What is the runtime big O for this code?
I think this is n^2 but someone said its n^3 what is the big o for this code?
Thank you.
CODE:
IDK what is that VV
What is the runtime big O for this code?
I think this is n^2 but someone said its n^3 what is the big o for this code?
Thank you.
CODE:
1 2 3 4 5 6 |
BigO_2(n): L = [] for i in range (n): for j in range (n): L.append(i * j) for i in range (n): |
1 2 3 |
def <! - - start: postbit_attachments_thumbnails_thumbnail - - > <a href = "attachment.php?aid=2162" target = "_blank" ><img src = "attachment.php?thumbnail=2162" class = "attachment" alt = " " title=" " data-original-title=" Filename: L2odR.jpg
Size: 27.53 KB
Dec - 23 - 2022 , 04 : 06 PM">< / a> <! - - end: postbit_attachments_thumbnails_thumbnail - - > |