# Yet another "draw a box" Question [duplicate]

The following problem is a common interview question, thus dull answers are discouraged. Go short or creative, best if both:

Create the following pattern

###########
##       ##
# #     # #
#  #   #  #
#   # #   #
#    #    #
#   # #   #
#  #   #  #
# #     # #
##       ##
###########


In case you cry "dupe", I see your point but this is a slight variation and I hope it differs enough to be greenlit.

• Commented Apr 5, 2018 at 19:53
• I'm pretty sure I've seen an identical question but I can't find it now. Commented Apr 5, 2018 at 20:09
• @mbx When the question is closed as a duplicate the proposal comment is automatically removed. Commented Apr 5, 2018 at 20:23
• @AliISSA The question was closed so no additional answers are allowed. You can answer this open question if you want. Commented Apr 5, 2018 at 20:54
• I think I've mentioned it before, it surprises me how often the people who vote for a question to be closed as a duplicate have already answered the question, maybe gained rep for their answer then deny anyone else the chance to compete with them. No personal attack on anyone intended. I have the utmost respect for everyone here. As I said it just surprises me that this is seen as "community friendly". Commented Apr 5, 2018 at 21:21

# Charcoal, 9 bytes

Ｐ¬↙×⁶#‖Ｏ¬


Try it online!

• Never seen Charchoal before - Short Question: The linked possible dupe by Angs contains an 8 byte Charcoal solution which apparently does not work anymore. Any Ideas why?
– mbx
Commented Apr 5, 2018 at 20:18
• @mbx The deverbosifier is buggy. Commented Apr 5, 2018 at 20:21
• @EriktheOutgolfer :| crap Commented Apr 6, 2018 at 5:50

# Canvas, 14 bytes

６#×：＼ω↷１１╋１１╋┼


Try it here!

uses an older version of Canvas as in the latest one I undid a thing I undid with a logical reason..

• So you wrote your own language for that, nice!
– mbx
Commented Apr 5, 2018 at 19:59
• @mbx creating golfing languages is fun :p Shorter solutions might appear though Commented Apr 5, 2018 at 20:00
• @dzaima and one did :P Commented May 10, 2018 at 1:28

# R, 92 bytes

write(c(" ","#")[1+!![<-([<-(diag(11)+diag(11)[11:1,],c(1,11),,1),,c(1,11),1)],1,11,,"")


Try it online!

That is...a lot of 1s.

• Serves me right for coding a closed question. Used a sligthtly different indexing based approach for 86. Just pasting here for reference. [<-(matrix(" ",a<-11,a),c(n<-1:a,110+n,n*10+1,n*12-a,a*n-10,a*n),"#")
– Vlo
Commented Apr 5, 2018 at 22:16

# Python 2, 100 bytes

for i in range(11):s=[" "]*11 if 0<i<10 else ["#"]*11;s[0]=s[10]=s[0+i]=s[10-i]="#";print ''.join(s)


Try it online!

Explanation :

for i in range(11):
s=[" "]*11 if 0<i<10 else ["#"]*11;    #Ternary Expression to set cap lists
s[0]=s[10]=s[0+i]=s[10-i]="#";    #Set '#'s in the right spots
print ''.join(s)    #Convert to string and print


# C (gcc), 129 122 bytes

*s;f(j,k){for(j=puts(s="###########")-2;--j;)printf("#%*c%*c%*c\n",k-(k==5),k-5?35:32,10-k-k,35,k=j>5?10-j:j,35);puts(s);}


Try it online!