Available question text
Given p, you may swap corresponding bits between any pair of numbers in the set {1,...,2^p-1}; compute the minimum possible non-zero product of the array modulo 1e9+7. Core insight: bit rearrangement lets you form one value 2^p-2 and (2^{p-1}-1) pairs whose products equal 2^p-1, so the minimum product is (2^p-2) * (2^p-1)^(2^{p-1}-1), computed with modular exponentiation (p ≤ 60).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1969. Minimum Non-Zero Product of the Array Elements
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source