4 Lines Simple Python soln


#1
class Solution:
    # @param A : list of integers
    # @return a list of integers
    def solve(self, A):
        for i in range (0,len(A)):
            if(A.index(A[i])<i):
                A[A.index(A[i])] += 1
        return A