Edodovivmagarwal
Computer Science - Algorithms - Big O notation - Big O Quiz
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Algorithms - Big O notation - Big O Quiz

vivmagarwal
vivmagarwalJan 29, 2026

Description

10 questions. Q1: O(3n² + 2n + 1) simplifies to? → O(n²). Q2: Code: for i in range(n): for j in range(n): if i==j: print(i). Complexity? → O(n²) (the if doesn't reduce iterations). Q3: Code: for i in range(n): j=1; while j<n: j*=2. Complexity? → O(n log n) (outer O(n), inner O(log n)). Q4: Which is

Details

Computer ScienceAlgorithmsClass 11, AS Level, Class 11, Grade 11, DP Year 1

Engagement

3

Likes

0

Remixes

0

Comments