I'm going to make a whole bunch of core algorithms in at least 2 languages per algorithm to help drill the basics into me. You guys think this is a good tactic to make yourself better at something?
Try it and see!
Your pivot selection is buggy in your C version. Think about what's likely to happen with p = 90, r = 100.
Yeah, you're right. I threw it together really quickly, I think I'll just replace the randomized partition with a regular partition call.