Knowledge check: Time complexity

A passionate full-stack developer from @ePlus.DEV
Search for a command to run...

A passionate full-stack developer from @ePlus.DEV
No comments yet. Be the first to comment.
Quick and practical tips to help users optimize tasks, improve skills, and solve common problems effectively across various areas like tech, lifestyle, productivity, and more.
Overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI công bố báo cáo mới về cách AI đang làm thay đổi phạm vi công

Overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary Anthropic bổ sung khả năng thay đổi tool giữa cuộc hội thoại mà không

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary Claude Opus 5 bắt đầu được triển khai trên GitHub Copilot cho các tác

Which has the largest time to compute?
O(1)
O(N)
O(log n)
Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
output(i)
O(N)
O(n^2)
O(1)
Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
FOR j = 1 TO N:
output(N)
O(n^2)
O(1)
O(N)
Given the following lines of code pseudocode:
N = 37
FOR i = 1 TO N:
j = 1
WHILE j < 10:
output(j*N)
j = j + 1
O(n^2)
O(N)
O(1)
Given the following lines of code pseudocode:
N = 10
FOR i = 1 TO 5:
FOR j = 1 TO i:
output(i*j)
O(n^2)
O(1)
O(Log N)
Given the following lines of code pseudocode: output(N)
N = 7
FOR i = 1 TO N:
FOR j = 1 TO N:
output(N)
O(1)
O(N)
O(n^2)
