CodingReported in a candidate post, Jul 2025
Merge intervals with 1-unit distance condition
Filed under Arista Networks
The question
Merge overlapping intervals with an extra condition that intervals can also be merged if they are 1 unit distance apart, utilizing STL list operations.
No write-up yet. Related questions below have one.
Related Arista Networks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.