Array
2401. Longest Nice Subarray
A subarray is nice if the bitwise AND of every pair of its elements is 0 — i.e. no two elements share a set bit. Find the length of the longest nice subarray. Pairwise bit-disjointness means the…
Loading…
A subarray is nice if the bitwise AND of every pair of its elements is 0 — i.e. no two elements share a set bit. Find the length of the longest nice subarray. Pairwise bit-disjointness means the…
Loading…