Realistically it's just a matter of the best ratio of job quality vs hoops.
If I know it's a great opportunity, wasting several days on useless or unpleasant hoop-jumping would be tolerable.
In practise though, I find it hard to know which jobs are worth a lot of hoops, and there's a lot of jobs I can apply for. So if there are too many hoops, I might just try somewhere else.
As to the specific hoops, I kind of like the at-home programming puzzles. I mean, I've done Hackerrank for fun, why not for a job? I don't think it should take more than about 4 hours, I've seen people spend way more than that.
I'm not sure it's smart for a company to reject people who can't solve algorithmic challenges. But I don't really mind myself if I am asked about those. I'd like to do work that requires those skills.
I'd be a big plus if I don't need to take several days of my current job. So I'd be willing to do more if I can do it in evenings or weekends.