challenge : Triangle Quest | Sololearn: Learn to code for FREE!

+1

challenge : Triangle Quest

You are given a positive integer . Your task is to print a palindromic triangle of size . For example, a palindromic triangle of size is: 1 121 12321 1234321 123454321 You can't take more than two lines. Input Format A single line of input containing the integer N. Constraints 0< N < 60

12/30/2017 12:17:27 AM

Sivaraj Sivasubramaniam

4 Answers

New Answer

+2

Answer in python https://code.sololearn.com/cP3i6C3NDV55/#py

+1

Yay I am the first one to answer this! Thanks for the challenge, here's my try: https://code.sololearn.com/WvxeWfWtKxfq/#js

+1

please consider "You can't take more than two lines. "

+1

https://code.sololearn.com/c92f1hd5UW6a/?ref=app