https://technology-made-simple.medium.com/how-to-spot-greedy-algorithms-techinque-tuesdays-3ca24617244b