Around a ring of nine, how many top both neighbors?
Nine sensors, each reporting a distinct reading, are arranged in a completely random order around a circular ring of 9 slots. Call a sensor a "hotspot" if its reading is higher than both of its two neighboring sensors.
On average, how many hotspots are there around the ring?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Around a round table, how many beat both neighbors?In a random row, how many are taller than their neighbors?In a random row, how many dip below both neighbors?Interior peaks in a random sequence of readingsHow many rising steps in a shuffled list?
All questions →