Given an integer array nums and an integer k, find the lexicographically smallest permutation of nums such that the number formed by concatenating the elements in that order is divisible by k.
Return the lexicographically smallest permutation as an array of integers. If no permutation produces a concatenated number divisible by k, return an empty array.
Constraints:
nums.length
nums[i]
k
Given an integer array nums and an integer k, find the lexicographically smallest permutation of nums such that the number formed by concatenating the elements in that order is divisible by k.
Return the lexicographically smallest permutation as an array of integers. If no permutation produces a concatenated number divisible by k, return an empty array.
Constraints:
nums.length
nums[i]
k