A Common-Sense Guide to Data Structures and Algorithms, Second Edition: It is written the wrong variable (page 467)

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! :wink: