I gotta ask... are companies you're interviewing with expecting you to have memorized particular algorithms? Or to be perfect with syntax?
In my most recent round of interviews, I found almost no one expecting me to recall a particular algorithm and implement it for a solution to a problem, but I did find plenty of questions that involved dealing with data structures, and writing my own code and algorithms to solve those problems.
Maybe I've been fortunate with not having been asked questions like "implement the quick sort algorithm"?