Sort:  

If you were to travel during the day and during the night to each island, you will be able to hit two island in a 24 hour period so you will eventually either find the gold or catch the paranoid pirate moving the gold at night.