Practice algorithm for jobs