Fill 2xN rectangle with 1x2 and 2x1 modules

How many ways can you fill a 2xN rectangle using 1x2 and 2x1 modules?

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: