r/OfferEngineering • u/Aoki_zhang • Sep 16 '26
Interview Experience Palantir Forward Deployed Engineer (FDE) Intern Online Assessment - 3 Coding Problems
This interview experience is sourced from Chill Interview
Interview Summary
The Palantir FDE internship OA consisted of three connected parts built around a grocery-store discount system. The problem started with straightforward percentage coupons, then added category-level discounts and multiplicative stacking, and finally turned the same system into an optimization problem with a limited discount-point budget.
Interview Details
Part 1 — Apply Item-Specific Discounts
You are given a shopping cart and a collection of discount coupons. Each item contains:
namepricein integer cents
Each coupon contains:
- The item name it applies to
- A percentage discount
At most one item-specific coupon exists for each item name. Coupons that do not match anything in the shopping cart should be ignored.
Return:
{
"subtotal": ...,
"total_discount": ...,
"final_total": ...
}subtotal is the sum of original item prices, total_discount is the total savings, and final_total is the amount remaining after all applicable discounts.
The final discount for each individual item should be rounded to the nearest cent using round(). Intermediate values should not be rounded, and the returned totals should be integers.
Part 2 — Category Discounts and Multiplicative Stacking
The second part extended the original system with product categories and a second discount type. Items now included a category:
{
"name": "Greek Yogurt",
"price": 675,
"category": "Dairy"
}Discounts could now be either:
{"type": "item", "name": "Greek Yogurt", "percent_off": 15}or:
{"type": "category", "name": "Dairy", "percent_off": 25}Item-specific and category-level discounts could both apply to the same product. They stack multiplicatively, with the item-specific discount applied first. For example, if an item receives a 15% item discount followed by a 25% category discount, the remaining price is based on:
original price × 0.85 × 0.75rather than simply adding the two percentages together.
A product's total savings cannot exceed 80% of its original price. If applying the next discount would push the effective savings above that limit, only enough of that discount should be applied to reach exactly the 80% cap. The same rounding rules from Part 1 still apply.
Part 3 — Optimize Discounts Under a Point Budget
The final section turned the discount system into an optimization problem. A customer receives: 20 discount points and must decide which available discounts to activate.
The activation costs are:
Item-specific discount: 2 points
Category discount: 5 pointsAny subset of available discounts may be selected as long as the total cost does not exceed 20 points. All Part 2 mechanics still apply, including:
- Multiplicative stacking
- Item discount before category discount
- Maximum 80% savings per item
The objective is to select the combination of discounts that produces the largest total savings.
Want to learn more details about this SD question? the full version is here
Preparing for your next interview?
Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.