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
A nested-comments API can return arbitrarily deep reply chains from user content. What's the main risk of a naive recursive DFS renderer here?
A
It will be too fast and cause race conditions
B
Stack overflow on unusually deep, externally-controlled input
C
It becomes O(n²) automatically
D
There is no risk, recursion depth is unlimited in JS
Check Answer