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,494 manager engineering interview questions shared by candidates
Behavioral and technical questions related to people management.
mostly about projects and experiences
Quelle est votre méthode de management ?
Are you OK working hard for a startup that can't compensate you like a bigger company can?
Talked through my resume and past experience
Nothing surprising all expected questions.
How do you define quality code?
Went through my experience. A lot of info coming from the HR person.
Viewing 7691 - 7700 interview questions