A “partition” function which takes a “list” parameter and a “size” parameter and returns a list of sublists, where each sublist has maximum “size” elements.
- JDK 1.8
- Maven 3.x
- Clone the repository https://github.com/ambpro/partition-coding.git
- Import as maven project in your IDE.
- Clone the project by following the setup instructions.
- Open the command prompt / terminal from project repository.
- Run
mvn clean test
.
- Clone the project by following the setup instructions.
- Run as Maven test.
From console,
- Move to the project repository.
- Run
mvn clean install
to build the application. - Launch the application using
mvn exec:java
.