Sure but one can understand quicksort, then forget how to implement it a month later. Or not be able to modify it to produce quick select.
So really, you do need to memorize stuff. Maybe not questions per se, but certainly patterns and techniques (on top of understanding the fundamentals)