As the GP commenter said:
> It really depends on what you're working on. ... It's all context.
I brought it up because many (most) commenters in this thread seem to be claiming that this knowledge and skill is never useful. That its ridiculous to ask about this stuff in any job interviews, except as a ritualistic hazing ritual. This is also absurd.
> As a Web developer, inverting a binary tree is not a thing an employer has ever asked me to do.
I've never had an employer name any data structures explicitly. Its our job as the software experts to know which tools and technologies are relevant. But with that said, I can't remember ever using custom data structures in frontend website code either. If I were hiring a web developer, there are so many things I'd rather spend time talking about in an interview. (HTML & CSS knowledge, web frameworks, design skills, raw programming skill, etc.)
Those commenters are making generalizations because many (most) jobs in the industry do not find that knowledge and skill useful. Certainly specialized edge positions exist.
If pure CRUD companies only looking for JavaScript specialists are also using leetcode screening, they're missing the point.
Everyone who's on the other side of the Leetcode debate from you wants the exact same thing - an interview process that is representative of the actual day-to-day work.
As a Web developer, inverting a binary tree is not a thing an employer has ever asked me to do.