← Questions

Is a graph bipartite?

0
AppleCodingLast asked Jul 2026

A coding interview question asked in Apple's technical phone screen, last asked Jul 2026. It tests graphs, bfs and graph coloring.

Given an undirected graph, decide whether its nodes can be split into two groups so that every edge joins nodes from different groups (equivalently, whether it can be colored with two colors so no edge joins two nodes of the same color).

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

  • Apple · Technical phone screen · Last asked Jul 2026

What it tests

graphs · bfs · graph coloring

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