Check Whether a Graph is Bipartite

Company: Samsung

Difficulty: medium