Nykaa SDE-1 Hiring Challenge 2024 | Cart Pair Discounts & Automated Warehouse Sorting
Question · Posted Jun 2026
Problem 1 - Maximize Cart Discount Pairs Problem Statement Nykaa is launching a promotional campaign for holiday shopping. You are given an integer array prices representing the costs of various products currently present in a customer's cart. A special bundle discount can be applied if two products form a valid pair. A pair of products qualifies for the discount if: |price1 - price2| = D where D is a given target value. Each product can belong to at most one ...
The full answer & interview discussion are available to premium members.
Log in Create a free account