Small simplification
This commit is contained in:
parent
0737ce4140
commit
27e35ad2f1
|
@ -27,8 +27,7 @@ def removeAdjacentDuplicates(s):
|
|||
def reapeatNumTimes(n):
|
||||
lst = []
|
||||
for i in range(1, n+1):
|
||||
for j in range(i):
|
||||
lst.append(i)
|
||||
lst += [i] * i
|
||||
return lst
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue