The assumption that leetcode is the only way to know if people have learning capabilities is weird. My job is a semi niche industry (semiconductor manufacturing equipment), most people who enter here need to go through a brutal ramp up. There are ways to assess learning ability without asking people to make interview preparation their part time job.
Edit: Anecdote time. The best interview I ever had was for my current job. It was a hour long where they gave me 1 design problem to solve. It was an open problem but the interviewer kept introducing new information. "Lets say the speed of stage cannot exceed x", "what if the wafer cannot take the stresses you will generate?", etc. I think that showed both my design thinking and the ability to assimilate new information in my mental model.