A good developer can performs a fast solution.
If exists some questions that check the execution time and compare it with a expected time, this will be so good to know if the developer knows the fastest algorithms.
Another suggestion is to verify the algorithm complexity. Thus, if the question expected a solution O(1) but the developer solved using a O(n) for example, then it will be useful to check the develoler knowledge.