Skip to content

meshboy/invitation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invite closer customers to Dublin

Problem Statement

Write a program that will read the full list of customers and output the names and user ids of matching customers (within 100km), sorted by User ID (ascending).

Description

This program is written in Java. The customers are read from a file, then deserialize by GSON into a list. Each item in the list was checked if it falls within the given boundary by using the given property (lat and long). The allowed customers are stored in a PriorityQueue sorted in an ascending order by using the userId property.

The sample file used to test for this program is located in resources/customers.txt under the src folder. Also, the result of the sample usecase can be found same path (resources/output.txt)

How to run the program

How to run Test

  • gradle test

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages