Printing Square Pyramid of length 'n'. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Printing Square Pyramid of length 'n'.

It is a problem found on several programming websites for practice. I did complete it but is there a better (easier) implementation for the same than the one implemented by me? For I think it is too big and complex. https://code.sololearn.com/cro2w1nO2SiR/?ref=app

17th May 2021, 6:23 PM
Prabhanshu Chaturvedi
3 Answers
+ 4
You will find many different awesome algorithms and solutions in the post linked below - https://www.sololearn.com/post/266912/?ref=app here's my version.. https://code.sololearn.com/c2UCDxW7j3i5/?ref=app
17th May 2021, 6:36 PM
Rohit Kh
Rohit Kh - avatar
+ 1
Thank you. I'll take my time to implement those algorithms.
18th May 2021, 6:39 PM
Prabhanshu Chaturvedi
+ 1
Have fun and happy coding! ✨🎉
18th May 2021, 6:40 PM
Rohit Kh
Rohit Kh - avatar