Finished maximum path problem