Once you get the job, sure learn it. Unless your job doesn't require it or you're not that interested.
But, online we need to be pedantic. That's rule 1.
You mean that they remember common patterns to solve problems? Or they memorize questions verbatim?
A person with a deep passion for algorithms might be tempted to try to solve it themselves before checking the answer - which can be a time consuming business. Time your competitors have used to memorised the answers to 25 more questions.
ldjkfkdsjnv has exaggerated a bit, to be provocative - but I've certainly had interviewers ask me questions that stumped the greatest minds in computer science for 25+ years; I don't know what they were expecting if not memorisation.
But that wasn't FAANG that's pretty exceptional.... Most stuff is DFS, memorization, etc... Things that are good principles and don't have "this one weird trick"
Furthermore, if you have a memorized solution, you can spit that out in 5 minutes, and then spend the next 30 minutes trying to figure out the slight change that you need to do to make it work for the minor change that was made.
Speed matters. And having stuff memorized makes everything else easier.
Then I guess you won't be very good at interviewing.
> Then what are you supposed to do?
Get better or give up. Your choice.
You'd have to request reasonable accommodations if you have a provable and medically documented disorder.
But also it would depend. A company is allowed to not hire someone if the person is not able to do the work. A company is only required to give reasonable accommodations.
When I interviewed at a google and netflix, not one of the coding questions were on any site (leetcode or hackerrank) because I wanted to look at the solutions afterwords.
It was only microsoft that would ask the common canned questions.
They are a pile of trash who are more than happy to place travelers in dangerous scenarios, while moving refund goalposts down the infinitely+long field.
Any mention of the company is advertising, whether you want to believe it or not.
Don't memorize it, learn it, become good at it.
No matter how much you memorize, there's going to be something you don't. But I think you know that.