We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Nit-pick to an otherwise great solution: once you find a correct difference, you can also increase i, not only j, removing some unnecessary comparisons:
Pairs
You are viewing a single comment's thread. Return to all comments →
Nit-pick to an otherwise great solution: once you find a correct difference, you can also increase
i
, not onlyj
, removing some unnecessary comparisons: