Write a function, given the number of stories in the building and calculates the number of different apartment combinations

An apartment building is being divided up and converted into apartments. A large building takes up two stories of the building and a small building takes up one story of the building.

Write a function that, given the number of stories in the building, calculates the number of different apartment combinations

Author: SanthoshRajappan
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer