Available question text
Support append, addAll, multAll, and getIndex on a sequence under up to 1e5 operations, where addAll/multAll affect all existing elements and results are modulo 1e9+7. The core challenge is to maintain and compose global affine transformations (value = a*orig + b mod MOD) and use per-element snapshots (with modular inverses) to answer point queries efficiently.
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 1622. Fancy Sequence
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source