Search⌘ K
AI Features

Median Paycheck: Exercise

Explore how to calculate the median paycheck of employees earning above 100,000 with Ramda's functional programming methods. Learn to apply point-free style and higher-order functions for a concise, declarative solution.

We'll cover the following...

I hope this one looks familiar–it’s from our higher-order functions section!

Given a list of employee salaries, find the median monthly paycheck above $100,000.

Usage

const medianPaycheck = getMedianPaycheck(employees) // $141,000

The median’s $141,000?! Must be Google or Facebook employees…oh, by the way, your solution must be point-free. ;)

Javascript (babel-node)
import {} from 'ramda';
import employees from './employees';
const getMedianPaycheck = () => {};