← Questions

Redundant connection in a directed graph

0
MicrosoftAnyscaleCodingLast asked Aug 2026

A coding interview question asked in Anyscale's technical phone screen and at Microsoft, last asked Aug 2026. It tests graphs and union-find.

A rooted tree on nodes 1..n had exactly one extra directed edge added. You get the resulting n edges as [parent, child] pairs.

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

  • Anyscale · Technical phone screen · Last asked Aug 2026One coding problem, live
  • Microsoft · Coding · Last asked Jan 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent

What it tests

graphs · union-find

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