At the end I said “write it in Rust” and it wrote a plausibly good implementation.
I’m not sure I can trust remote interviews any more…
It didn't get a very welcoming reception -- "highly unlikely", and the tenor of other opinions in those comments then tended the same way. But I was being too conservative. (I thought so at the time but it felt sort of outside an Overton window of reasonable technology opinions.)
(Basically it tried to parse HTML with regexes.)
I'm honestly excited as heck that something will finally kill off this practice. Don't let the door hit you on the ass on the way out, leetcode.
Not that I want or need this to pass interviews. But it would finally force the industry to find a better way to evaluate candidates.
Put your query into Google and see how many thousands of answers appear.
Your tests are in the training set.