Question: USING RECURSION - A mason is using rectangular bricks to make a walkway. He has bricks that are 3 feet long and bricks that are
USING RECURSION - 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
