A task you solve with someone (as part of your team if you get hired) > take home task > leetcode interview
in my opinion
in my opinion
I agree it's maybe a little less respectful of a candidate's time, but as long as it's not too big a task I don't think it's unreasonable either.
When I was a junior developer I used to deal with a). Now that I have more years of experience I usually deal with b).