← Barclays questions

Sort a 2D array

Filed under Barclays

Given a 2D array of integers, write a program to sort all its elements in non-decreasing order and return the elements back into the 2D grid structure.

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 Barclays questions

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