← Questions

Implement a random forest classifier from scratch

0
MicrosoftCodingLast asked Oct 2026

A coding interview question asked in Microsoft's technical phone screen, last asked Oct 2026. It tests machine learning, decision trees and ensembles.

Write a random forest classifier yourself: the decision trees and the ensemble around them, with no library tree or forest. NumPy for array math is usually fine; confirm it.

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

What it tests

machine learning · decision trees · ensembles · ml coding

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