Showing 3 of 3 questions
Find the longest contiguous subarray within an array where every element has the maximum possible bitwise AND value across the entire array. Return the length of that subarray.
#1. Longest Subarray With Maximum Bitwise AND
Given a list of words and corresponding group categories, find the longest subsequence where no two adjacent elements belong to the same group. Return the resulting sequence of words while maintaining their original relative order.
#2. Longest Unequal Adjacent Groups Subsequence I
You're given a sequence of numbers and group assignments. Find the longest subsequence where adjacent elements belong to different groups.
#3. Longest Unequal Adjacent Groups Subsequence II
Page 1 of 1 · 3 total