How to find lexicographically largest

what is lexicographcally largest in an array sequence

Like in an array [1,7,9,0,2,2,1]
how to arrange it in a way such that it is lexicographically largest

Can you provide more information?

1 Like

yeah:)
Like in an array [1,7,9,0,2,2,1]
how to arrange it in a way such that it is lexicographically largest

Here, Lexicographically Largest will be Non-Increasing order.
i.e. Array[9,7,2,2,1,1,0]

2 Likes

Thanks…