// topic description // We can use 2*1 small rectangles to cover larger rectangles horizontally or vertically. // How many ways are there to cover a large 2*n rectangle with n small 2*1 rectangles without overlapping? public static int RectCover(int target) { if (target<1){ return 0; } if (target==1){ return 1; } if (target == 2){ return 2; } return RectCover(target-1)+RectCover(target-2); }