Available question text
Count the number of ordered pairs of disjoint non-empty subsequences (seq1, seq2) of nums whose elements have the same GCD, returning the result modulo 10^9+7 (n ≤ 200, nums[i] ≤ 200). The core challenge is to aggregate subsequences by their GCD (bounded by 200) and combine those counts efficiently to count disjoint pairs.
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 3336. Find the Number of Subsequences With Equal GCD
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source