Problem Statement | |||||||||||||
A chessboard pattern is a pattern that satisfies the following conditions:
You are given two ints rows and columns. Write a method that computes the chessboard pattern with these dimensions, and returns it in a String[]. The elements of the return value correspond to rows of the pattern. Specifically, the first character of the last element of the return value represents the lower left corner (see example 0). | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
- | rows will be between 1 and 50, inclusive. | ||||||||||||
- | columns will be between 1 and 50, inclusive. | ||||||||||||
Examples | |||||||||||||
0) | |||||||||||||
| |||||||||||||
1) | |||||||||||||
| |||||||||||||
2) | |||||||||||||
| |||||||||||||
3) | |||||||||||||
|