partition-coding

About "Partition"

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.

Prerequisite for this application.

  • JDK 1.8
  • Maven 3.x

Set up Application

  1. Clone the repository https://github.com/ambpro/partition-coding.git
  2. Import as maven project in your IDE.

Run Test cases

Run from command prompt or Terminal

  1. Clone the project by following the setup instructions.
  2. Open the command prompt / terminal from project repository.
  3. Run mvn clean test.

Run from IDE

  1. Clone the project by following the setup instructions.
  2. Run as Maven test.

Run Application

From console,

  1. Move to the project repository.
  2. Run mvn clean install to build the application.
  3. Launch the application using mvn exec:java.