Ok, I think I've solved the 4 first. I'm a bit confused by the fifth, though. Either there're 1 item too little in the array, or I'm missing something.
Spoiler for Challenge 1:

Spoiler for challenge 2:

Spoiler for challenge 3:

Spoiler for challenge 4:


Also, it'd be nice if other people hide their code too. So that the ones who come here to try can find their own solutions, and don't get influenced by the ones that have been posted.