Available question text
Count the number of valid ways to choose or label houses arranged in a circle subject to local constraints (for example, restrictions on adjacent selections or coverage), where wrap-around adjacency makes the cycle nontrivial. Designing an efficient solution requires cycle-aware dynamic programming, combinatorics/inclusion–exclusion or matrix exponentiation and careful handling of large n and modular arithmetic.
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 2753. Count Houses in a Circular Street II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source