Coding
Combinatorial Reasoning
Easy
Guaranteed Repeats by the Pigeonhole Principle
An array of n+1 integers contains values only from {1,...,n}. What principle guarantees at least one repeated value?
Quant interview-style problem · QS-XNA020
Question 22 of 27
An array of n+1 integers contains values only from {1,...,n}. What principle guarantees at least one repeated value?
Think first. Use hints deliberately. Study the reasoning only when you need it.