โ† Thoughtworks questions

Design a data structure for nested CSS selectors on the HTML DOM

Filed under Thoughtworks

The question

Design a data structure to apply nested CSS selector properties to the HTML DOM. The long discussion ended with using trees.

No write-up yet. Related questions below have one.

Related Thoughtworks questions

Collected from public candidate posts and coding forums. Updated Nov 2026.