/Ing

Test task for work

Primary LanguageJavaApache License 2.0Apache-2.0

Ing

Test task for work

###To run in your PC:

require:

java 11

usage:

java -jar Ing.jar file.csv

###To run in docker:

(privileges same as to run docker)

run "./buildDockerContainer.sh" to get container

run "./runWithFile.sh your_file" to send your_file to container and get a result

The result will be saved in your host as "result.txt"

run "./deleteContainer.sh" if you want to delete cantainer

bad string example:

"";

"83000854422549"

"8383"200000741652251"

"79855053897"83100000580443402";"200000133000191"

lng-big.csv:

all time taken: 17.5

all groups: 105036

good groups: 5035

biggest group :

too big for readme

size is 84593

smallest group:

something like 12750.1

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lng.csv:

runtime: 5.3s

all groups: 996693

good groups: 1447

biggest group:

83510109514 200000644359490 100000075509630

200000644359490 83

100000564414389 200000543806071 83

smallest group:

something like

20000039800630