Michael Krowford
New member
- Joined
- Apr 15, 2020
- Messages
- 2
All degrees of vertices in an undirected graph are equal to 2k. All of its ribs are painted in several colors. Find an O(|V| + |E|) algorithm (where E is the set of edges, V is the set of vertices) that finds in this graph the Euler cycle in which the colors of all neighboring edges are different (or outputs that there is no such cycle).