โ† Thoughtworks questions

Transform matrix border and inner elements

Filed under Thoughtworks

The question

Given a matrix, print a new matrix where border elements are doubled and remaining inner elements are halved.

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

Related Thoughtworks questions

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