I am quite passionate about algos, do lots of katas on codewars for fun, and done plenty of leetcodes.
Then I had a technical interview when I was asked to implement a simple algo for the tris game (aka tic tac toe) and my mind was completely blurry.
I was tired, i'm in eu and this was for a San Francisco startup interviewing me at their lunch time, very late in Italy.
And generally don't like to be interviewed/tasked.
Of course the solution is beyond simple, but I struggled even at brute forcing it.
I can easily do these kind of exercises (and much harder ones obviously) for fun, but not when interviewed.
I struggled with the same thing in University. I graduated with 104/110 even though I was consistently among the most prepared, and I learned to learn, not to pass exams (plenty of stellar performers didn't remember anything few weeks after exams).
Once I asked a professor why did he grade me 27/30 even though I spent one hour answering with details on everything, including the hardest questions.
"Because you never appear convinced when you answer".
I get nervous, I don't like to prove my knowledge this way. I rethink constantly what I'm saying, or even how I sound.
I forget how to type braces or back ticks.
I did not have any issues when not interviewed, or in written exams, or during my research period when I published 3 papers that have been highly cited.
But I am just not a fan of these types of interviews they tell absolutely nothing about the candidate.
You interview me and you'll have the very wrong impression if you ask me to live code or white board.
Meanwhile I've seen leetcode black belts spend most of their time logged on Tekken 7 on discord, consistently creating work and providing negative value while somehow always selling their high skills.
I have found much more value in seeing personal projects, and OSS contributions.
Never asked a single of these bs questions and never failed at hiring anyone. Not once.