My recent interviewing experience, while anecdotal, would suggest that you'd actually be better off with the coding challenge sites, assuming that succeeding at interviewing is your goal.
I think this is unfortunate, irrational, and that contributing to Github projects would actually build your practical skills while adding some value to the universe.
But having spent more time working on coding challenges, algorithms and puzzles would have been more beneficial to my most recent several interviews.