Data Structures & AlgorithmsModerateICPC regional · graph colouring
Problem: Which result says that every planar graph is 5-colourable?
- A. Dirac's theorem
- B. The handshake lemma
- C. Hall's theorem
- D. The five colour theorem
Correct answer: D. The five colour theorem
The five colour theorem follows from Euler's formula and a degree argument, and the four colour theorem is stronger.
More Coding Interview Problems questions
- Problem: What is the purpose of the 'lowest common multiple of the array' technique in competitive programming?
- Problem: In counting sort, what limits its use on a large input?
- Problem: What does the expression 'x & (x - 1)' clear in the binary representation of x?
- Problem: Which algorithm solves the 'minimum cost to connect all points' in the Euclidean plane with n points in O(n^2) time (dense graph)?
- Problem: What is the time complexity of building a trie for n strings of total length L?
- Problem: What is a 'bridge' in an undirected graph?