At the end of every trivia question I'm tempted to ask: so is this typical of what I will be doing here? Will I be implementing rand(7) given rand(5) once a week?
I've also had a bad experience with code challenges. These are given before the first phone interview. I'm happy to do a challenge taking < 1 hour. I once did a challenge that took me 3 hours. Got rejected because they didn't like my visual design (I was interviewing for a backend position).
I've realized that code challenges require no investment on the company's part, so I don't want to do one that requires significant investment on my part.