In this **HackerRank Triangle Quest problem solution,** You are given a set A and N number of other sets. These N number of sets have to perform some specific mutation operations on set A. Your task is to execute those operations and print the sum of elements from set A.

## HackerRank Triangle Quest in python problem solution

for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
print reduce(lambda y, x: y * 10 + x, [i]*i)

### Second solution

for i in range( 1, int( input() ) ):
print( i * sum( map( lambda x: 10**x, range( i ) ) ) )

Saturday, August 21, 2021