DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Interview Prep Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Interview Prep
Why does an O(n²) list-processing function matter more in frontend code than in a one-off backend script?
A
It doesn't — complexity means the same thing everywhere
B
It runs on the shared UI thread and can visibly block rendering/interaction, especially if it re-runs on every keystroke or render
C
Frontend JavaScript engines are slower at math than backend ones
D
O(n²) is always fine below n=1000 in any environment
Check Answer