Program verifies if wall of some configuration can be constructed from some set of bricks.
The format for input data is as follows:
1: width and height of wall's shape matrix - two positive integers W and H separated by space on their own line.
2: wall's shape matrix - H strings each of length W, formed just of '1' and '0' symbols with every string on its own line.
3: the count of bricks' sorts - the positive integer C.
4: list of bricks - C lines each containing three positive integers separated by space - width of brick, height of brick and count of such bricks in the set.
Example of source data:
6 3
101101
111111
111111
4
1 1 4
2 1 6
1 3 1
3 4 5
- java 11
- maven 3.6.3
- maven-checkstyle-plugin 3.1.1
- lombok 1.18.12
- junit 4.13
To run this project you need to install:
- Java 11 or above
- Maven 3.6.3
Add this project to your IDE as Maven project.
Add Java SDK in project structure.
Run the project (Main class).
Unit tests are located in folder src/test/java/com/ksv/service/impl
You can run tests in the terminal with the "mvn test" command.