Chained map-filter Salary Pipeline

Medium ⏱ 12 min 59% acceptance ★★★★☆ 4.4
Payroll needs the post-raise salaries of employees currently under 50,000: apply a 10% raise to only those, using filter then map chained (no comprehensions), returning a list of rounded integers.

Examples

Example 1
Input
raise_low_salaries([45000, 60000, 30000])
Output
[49500, 33000]
Explanation

60000 is filtered out; the rest gain 10%.

Constraints

  • filter first, then map, chained in one expression.
  • Round to int.

Topics

Lambda & Functionalmap + filter chain

Companies

Goldman SachsDeutsche BankBarclays

Hints

Hint 1

map can consume the filter object directly.

Hint 2

lambda s: round(s * 1.1).

Loading the Python runtime… Run executes your code and shows printed output; Submit checks your function against this problem's examples.