Onsite
Onsite Day 2 Coding on Discounts Over a Category DAG
FaireSoftware Engineer · Onsite · Aug 2026
Coding Part 1 Product categories on an e-commerce platform are hierarchical. The categories are not a strict tree, they form a DAG. That is, a category can belong to several parent categories at the same time. For example: C3_Shirts can belong to both [C2_Mens, C2_Womens] A product inherits: the discount of its own category the discounts of all of its ancestor categories The discount actually app…
Shared by a candidate · reported Aug 2026. Interview formats change; use it as a guide, not a script.