Changes between Version 6 and Version 7 of ProgrammingPrompts
- Timestamp:
- Nov 23, 2015, 1:33:03 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProgrammingPrompts
v6 v7 5 5 6 6 '''Checkerboard'''[[BR]] 7 Write a static method that takes two int parameters {{{m}}} and {{{n}}} and returns a checkerboard-patterned two-dimensional boolean array that is {{{m-by-n}}} in size. Any given checkerboard square on a checkerboard has no adjacent squares with the same color (boolean value).[[ Image(https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Checkerboard_pattern.svg/300px-Checkerboard_pattern.svg.png)]]7 Write a static method that takes two int parameters {{{m}}} and {{{n}}} and returns a checkerboard-patterned two-dimensional boolean array that is {{{m-by-n}}} in size. Any given checkerboard square on a checkerboard has no adjacent squares with the same color (boolean value).[[BR]][[Image(https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Checkerboard_pattern.svg/300px-Checkerboard_pattern.svg.png)]] 8 8 9 9 == Test Scripts