โ† Sandvine questions
CodingReported in a candidate post, Nov 2021

Permutation with consecutive difference of 5

Filed under Sandvine

The question

Given an array of integers of size S, determine if there exists a permutation of the array elements such that the absolute difference between every pair of consecutive elements is equal to 5.

No write-up yet. Related questions below have one.

Related Sandvine questions

Collected from public candidate posts and coding forums. Updated Nov 2026.