The idea of getting quizzed on how good you are at recalling specific patterns in algorithm construction is completely and utterly bizarre.
I get that some people feel forced into it, but nobody can believe that this is an appropriate measure to judge programmers on. Sure, being able to understand and implement algorithms is important, but this is not what this is training for.