← Cisco questions

Matrix transformation

Filed under Cisco · Also reported at Arcesium

Find the minimum number of adjacent swaps required to sort a 3x3 matrix, where two adjacent elements can only be swapped if their sum is a prime number.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

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