Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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*",
"*****"]