+ 6
[Solved] What do you think about this code? Any better Solution?
This question is from a competitive coding site and a practice question of python in it. https://code.sololearn.com/c41338A16A9a/#py
8 Respostas
+ 5
yeeees... at least another one.
if you replace abcde... by 01234....
the numbers will show the distance from center of your figure going vertically or horizontally.
This interpretation of your figure leads to a shorter code
https://code.sololearn.com/cARCI7mSvK31/?ref=app
+ 5
Your code works fine. But a bit lengthy but still very good because it does the job.
Here's a version of mine:
https://code.sololearn.com/c2a19a0a25a1/?ref=app
+ 2
Oma Falk It have "-" in between the characters so it will not work.
+ 2
My version :) I use a lot of slicing, and mirroring
https://code.sololearn.com/c1QU0zzpm53e/?ref=app
+ 1
Shubham Aggarwal a little adaptation did it
+ 1
Oma Falk woah
+ 1
Noted.
+ 1
Here's my one-liner solution (inefficient though):
https://code.sololearn.com/cqzjH5MvL1yc/?ref=app
# Hope this helps