Available question text
Define big_nums by concatenating, for each positive integer in order, the sorted list of powers of two that sum to it (its binary decomposition); big_nums therefore contains only powers of two. For each query [l,r,mod], compute the product of big_nums[l..r] mod mod — the core challenge is handling indices up to 1e15 by counting occurrences of each 2^k in a range and using modular exponentiation without constructing the array.
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 3145. Find Products of Elements of Big Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source