← ALL NOTES
Array

2900. Longest Unequal Adjacent Groups Subsequence I

Given a string array words and a binary array groups of the same length. Find the longest subsequence of indices whose adjacent chosen elements have different groups values. Return the corresponding…

Loading…