You are given two strings s and target of equal length.
Return the lexicographically smallest permutation of s that is strictly greater than target. If no such permutation exists, return an empty string "".
Constraints:
s.length target.length
s and target consist only of lowercase English letters.
You are given two strings s and target of equal length.
Return the lexicographically smallest permutation of s that is strictly greater than target. If no such permutation exists, return an empty string "".
Constraints:
s.length target.length
s and target consist only of lowercase English letters.