Triangle Quest 2
-
Practice>Python>Math>Triangle Quest 2hackerrank.com 2019. 2. 22. 13:22
Triangle Quest 2Problem link : https://www.hackerrank.com/challenges/triangle-quest-2/problemDifficulty : Medium TipThis problem is not easy as we can use only one lineOne line means that we can't use any functionAs a first step,1 x 1 = 111 x 11 = 121111 x 111 = 12321So, how do we create 1, 11, 111 from 1, 2, 3(10**i)//9