Skip to main content
2 of 4
solution improvement
adrianmp
  • 1.7k
  • 1
  • 10
  • 15

#Ruby, 28 26 bytes#

Thanks to Cyoce for saving 2 bytes!

->n{eval'['*n+'n'+']*n'*n} 

Stolen shamelessly from xnor's excellent answer.

adrianmp
  • 1.7k
  • 1
  • 10
  • 15