Practice algorithm for jobs.