Actually having to google something so basic makes your experience suspect. That's almost as bad as having to google for loop syntax in a language you say you know.
I have ADHD, I'm glad I can remember to not put the underwear on my head instead of where it belongs. Of course I can't remember how a for loop looks like, that's why some nice people invented code completion.
First, thank you to share so directly. HN is stronger for anecdata like this.
Let us assume that you are a competent worker that other firms want to hire. What is the best way to find people like you and to test/interview people with ADHD?
To be clear, I do not have ADHD, so I have no personal experience with this important topic.
I think homework would be fine, it really depends on the person. You can find people with ADHD who would crush these questions and others who wouldn't.
Personally... I had another profession before and was never asked anything during interviews. They just assumed I was capable because I had a degree, work experience and references. So I'm not quite sure where that even is coming from, it's unheard of in other professions.
Some companies want you to describe your solution, or say pseudo code is fine. But not every company will be completely honest about how much they actually do penalize for improper syntax.