Write a function to select the best coupon from a list that provides the maximum discount for a given cart value. Each coupon has fields: code (string), max_discount (numeric), priority (numeric, lower is higher priority), and min_cart_value (numeric). A coupon is eligible only if the cart value meets or exceeds its min_cart_value. Selection Rules Filter eligible coupons first, then rank by these criteria in order: Highest max_discount (primary) Lowest priority if discounts tie (secondary) Earliest occurrence in input list if both discount and priority tie (tertiary) Return the coupon details (or null/none if no eligible coupons). Assume input is an array of coupon objects and a numeric cart_value.
Manager Engineering Interview Questions
8,530 manager engineering interview questions shared by candidates
How do you plan your work (OKRs)? How do you manage low performers?
Tell me about your project that is challenging the most for you and you are proud of it.
What are the business values?
To talk about past experiences you feel that are similar to challenges they explainned having now and how I managed them.
What is Artificial Intelligence (AI)?
Deep discussion about AI, Gen AI and different tools used, how was my past role etc.
Scenario about replacing external team for internal with reduced capacity but deadlines.
Conflicting situation at your last job.
in my case they were looking for a broad engineering/management experience so that it was not hard to present it.
Viewing 8521 - 8530 interview questions