A Common-Sense Guide to Data Structures and Algorithms, Second Edition by Jay Wengrow @jaywengrow
Hi,
in the book, to page 467, you say:
In good greedy fashion, we save this profit in a variable called
greatest_profit
.
But I think the correct variable would be potential_profit
instead.
Is it right? Many Thanks!