Problem 2401 · Medium

Longest Nice Subarray

Find the longest subarray whose different elements have pairwise disjoint set bits.

Open the interactive visualisation