← Cisco questions

Minimum exchanges to sort a 3x3 matrix

Filed under Cisco

Find the minimum number of adjacent exchanges to sort a 3x3 matrix (1-9) where an exchange is only valid if the sum of the two swapped elements 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.