Code golf dp.