3706. Maximum Distance Between Unequal Words in Array II
ArrayString
Hints
Hint 1
Use two pointers
Hint 2
Fix the first word as
words[i] and find the rightmost unequal words[j]Hint 3
Fix the last word as
words[i] and find the leftmost unequal words[j]Preparing judge…