โ† Snapdeal questions

Generate infinite category tree from database tuples

Filed under Snapdeal

The question

Given an array list of category tuples with name, ID, and parent category ID where categories and subcategories can be infinite, build and return the complete tree structure.

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

Related Snapdeal questions

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