Ivory Coast came from behind to snatch a 2-2 draw with Algeria in the final Africa Cup of Nations Group D game on Wednesday.