buddy-strings-early-exit-on-third-diff

Status: IN

The diff-collection loop returns `False` immediately upon finding a 3rd mismatch, bounding the `diffs` list to at most length 2 and guaranteeing safe index access in the final check.

Source: entries/2026/06/06/buddy-strings-solution.md

JSON