You are given an array of strings strs. You can arbitrarily choose to reverse any number of strings in strs. After making these choices, concatenate all strings in their original order into a circular string where the end of the last string connects to the beginning of the first string.
You can then make a single cut at any character position within this circular string to obtain a linear string by reading the characters in order starting from the cut.
Return the lexicographically largest string that can be produced.
Constraints:
strs.length
strs[i].length
strs[i].length
strs[i] consists of lowercase English letters.
You are given an array of strings strs. You can arbitrarily choose to reverse any number of strings in strs. After making these choices, concatenate all strings in their original order into a circular string where the end of the last string connects to the beginning of the first string.
You can then make a single cut at any character position within this circular string to obtain a linear string by reading the characters in order starting from the cut.
Return the lexicographically largest string that can be produced.
Constraints:
strs.length
strs[i].length
strs[i].length
strs[i] consists of lowercase English letters.