← Questions

Friend recommendation by mutual friends

0
Fireworks AIMetaCodingLast asked Nov 2026

A coding interview question asked in Fireworks AI's coding round and at Meta, last asked Nov 2026. It tests graphs, recommendations and counting.

Given a social graph where friendship goes both ways, recommend people a user might know: people who are not already their friends, ranked by how many friends they share with the user.

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

  • Fireworks AI · Coding · Last asked Nov 2026Live coding, one round
  • Meta · AI-enabled coding · Last asked Nov 202660 min · Several progressive tasks on a starter codebase in CoderPad with an AI assistant panel; usually two rounds · The first task usually without AI, later tasks with it

What it tests

graphs · recommendations · counting

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