Skip to content

Scylanth/InterviewExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scala exercises

You will need Java 8 installed on your machine (sudo apt-get install openjdk-8-jre) Update the TestSuite with your answers, you can test the result with mvn clean test

Context

website = website of the online travel agency (e.g Expedia). The names have been changed.

origin_airport (resp. destination_airport) = 3-letter IATA code that describes the airport of origin (resp. destination)

bookings = nb of tickets bought by a traveler on a website (e.g. Expedia) with an airline (e.g. AirFrance)

Exercise

1 Open the aggregated_source.csv document and load the dataset in memory and print it

2 Write a script that computes only for Europe to Europe trips:

-2.1 How many total bookings are sold by canoe

-2.2 The percentage of bookings sold per (website, airline)

-2.3 The most popular airline by website

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages