Deutsch–Jozsa algorithm
Tells a constant function from a balanced one with one query.
It was one of the first algorithms to show an exact quantum advantage in queries. Randomized classical methods do nearly as well, so its value is mainly educational.