Hacker News new | ask | show | jobs
by feliperibeiro 4410 days ago
You're right. This is the subtraction-based implementation, the division-based is the original and better one :)

https://github.com/felipernb/algorithms.js/commit/e5a04f9ad0...