You are given a string num representing a large integer. An integer is considered good if it satisfies the following conditions:
It is a substring of num of length
It consists of only one unique digit.
Return the maximum good integer as a string. If no such integer exists, return an empty string "".
Note: A substring is a contiguous sequence of characters within a string. If multiple good integers exist, compare their numeric values to find the maximum.
Constraints:
num.length
num consists only of digits.
You are given a string num representing a large integer. An integer is considered good if it satisfies the following conditions:
It is a substring of num of length
It consists of only one unique digit.
Return the maximum good integer as a string. If no such integer exists, return an empty string "".
Note: A substring is a contiguous sequence of characters within a string. If multiple good integers exist, compare their numeric values to find the maximum.
Constraints:
num.length
num consists only of digits.