i takes months to prepare and memorize optimal solutions:
during an interview in my experience it is timed AND you need to give the optimal solution AND you need to talk while coding
hiring those good at leetcode will get you a team consisting of people who had the time to practice and are good at practicing. that’s it.
not passing leetcode interviews has no meaning regarding someone’s capabilities.
and BTW i am not talking about a basic for loop type problem.