Question: A mason is using rectangular bricks to make a walkway. He has bricks that are 3 feet long and bricks that are 1 foot long.
A mason is using rectangular bricks to make a walkway. He has bricks that are 3 feet long and bricks that are 1 foot long. If the walkway is a total of n feet long, how many different ways are there to lay out bricks for the walkway? For example, if n is 5, there are four possibilities: Your method should look like this: public static int countPatterns(int n) { // TODO }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
