Algorithm · Capital One · Medium
Requirements The input is a numeric matrix with two dimensions. Visit the outer boundary of every concentric layer in the matrix. For each layer, collect its border entries, arrange those entries using the rule supplied by the prompt, and place the resulting sequence back around that same border clockwise. Once every layer has been handled, return the updated matrix. Notes The information provided establishes that this task processes matrix borders one layer at a time, but…
Checking your access…