← Questions

Implement reduce, then map and filter on top of it

0
TeslaCodingLast asked Sep 2026

A coding interview question asked in Tesla's technical phone screen, last asked Sep 2026. It tests functional programming and higher-order functions.

In a language of your choice, implement reduce yourself, then implement map and filter using only your reduce, without a separate loop over the input. Then use the three together to process rows of a small table.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Tesla · Technical phone screen · Last asked Sep 202645 min · 10 to 20 minutes on your background, then one compact coding, debugging or design task in CoderPad that must run

What it tests

functional programming · higher-order functions

Your code and the AI tutor open when you unlock this question.