Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 224 Bytes

File metadata and controls

17 lines (14 loc) · 224 Bytes

add a border

Given a rectangular matrix of characters, add a border of asterisks(*) to it.

Example

For

picture = ["abc", "ded"] the output should be:

solution(picture) = 
["*****",
"*abc*",
"*ded*",
"*****"]