• [deleted]
    + 0 comments

    Why you said that your solution is O(1) Auxiliary space? You allocate O(N) of auxilary space for array 'a'