Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2320. Count Number of Ways to Place Houses
Count placements of houses on two independent rows of n plots so that no two houses are adjacent on the same side; this reduces to counting binary strings of length n with no consecutive ones (a Fibonacci sequence) and returning the square of that count modulo 1e9+7.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.