The vast majority of places are asking algorithmic questions not for you to reimplement known algorithms, asking candidates to regurgitate existing algorithms is widely known as bad practice.
So your claim is every company is coming up with new algorithms that they use for their tests??
The test should never rely on rote learning (e.g. implement Dijkstra's algorithm from memory) or require a "magic" solution (e.g. Project Euler)