You are given a string s consisting of digits from
A pair of adjacent characters in s is considered valid if:
The two adjacent characters are not equal.
The total count of each character in s is equal to its numeric value.
Return the first valid pair of adjacent characters encountered from left to right. If no valid pair exists, return an empty string "".
Constraints:
s.length
s consists only of digits from
You are given a string s consisting of digits from
A pair of adjacent characters in s is considered valid if:
The two adjacent characters are not equal.
The total count of each character in s is equal to its numeric value.
Return the first valid pair of adjacent characters encountered from left to right. If no valid pair exists, return an empty string "".
Constraints:
s.length
s consists only of digits from