Skip to content

Commit 4ae72bc

Browse files
authored
Update create-target-array-in-the-given-order.py
1 parent 1507119 commit 4ae72bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/create-target-array-in-the-given-order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def createTargetArray(self, nums, index):
1010
"""
1111
for i in xrange(len(nums)):
1212
for j in xrange(i):
13-
if index[i] <= index[j]:
13+
if index[j] >= index[i]:
1414
index[j] += 1
1515
result = [0]*(len(nums))
1616
for i in xrange(len(nums)):

0 commit comments

Comments
 (0)