Order Series of 2 and 3

0

0 votes
Medium
Problem

Given an input number 'n',  you've to print numbers till 'n' in the format 2,3,22,23,32,33,222...

Input : 5

Output 2 3 22 23 32

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

?