Print the pattern

4.1

29 votes
Problem

Given an integer n(1<=n<=10), print n rows of the given pattern in minimum length.

1

2 3

6 5 4

7 8 9 10

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?