What is a lexicographically smallest array

Can anyone explain me what is meant by Lexicographically smallest array ? Examples would be appreciated

Isn’t this from a live contest?


I think it’s not allowed to post queries regarding online challenges while they’re live

Now you can safely answer me I have deleted the link

If the array is of integers then you just have to find the most sorted array you can achieve while prioritizing lower indices.

1 Like