Bobyard logo

Bobyard Interview Question Bank

Bobyard builds AI-powered takeoff and estimating software for landscaping and construction contractors.

Coding problems
6
Before you start
Showing 12 of 12
Coding·45 min
MediumFree preview

Turning a Flat Comment List into Threaded Replies

Convert a flat list of comments carrying parentId values into a nested tree where each comment has a children array, then render that tree with indentation by depth. Roots are shown newest first.

SWE
medium
tree
hashmap
frontend
+2
4 related discussions