Hacker News new | ask | show | jobs
by bajsejohannes 2959 days ago
A tiny correction in the following:

    if (position + adjustedSpeed in memo and
        adjustedSpeed in memo[position + adjustedSpeed] and
        adjustedSpeed in memo[position + adjustedSpeed]):
The middle line is not needed.
1 comments

Thanks! Corrected it now to remove the duplicate line.