Data Structures & AlgorithmsHardICPC regional · graph theory
Problem: What is the maximum number of edges in a simple planar graph with V >= 3 vertices?
- A. 3V - 6
- B. V^2
- C. V(V-1)/2
- D. 2V - 3
Correct answer: A. 3V - 6
Euler's formula for planar graphs gives at most 3V - 6 edges for V >= 3.
More Coding Interview Problems questions
- Problem: Which theorem states that every tree on n vertices has exactly n - 1 edges?
- Problem: What is the number of spanning trees of a cycle graph Cn with n vertices?
- Problem: Which problem does the Gale-Shapley algorithm solve, and what is its typical outcome?
- Problem: What is the time complexity of building a Fenwick tree from an array of n values in O(n) time?
- Problem: What does the Booth's algorithm compute?
- Problem: Which claim about the Manacher algorithm is correct?