I applied from Booking.com careers page around Jan. I received the recruiter call around May. By Feb, I had already switched but I gave this a try so that it will be a practice for me and also I could get the questions and share it with this community 😊
Spring Boot App template given.
Data populated in h2 database.
All the JPA entities (Hotel, City) and their corresponding repository classes were present.
(Note: Latitude and Longitude info for City and Hotel will be present in their corresponding tables. The question suggested to use Haversine formula to calculate the distance and also could google search for the formula)
Design Rating and Review System for Booking.com with following features :
Find all possible ways to spend the total budget.
{
"numDaysInEachCity": 2,
"totalBudget": 390,
"pricesPerCity": {
"Paris": [10, 20, 50, 80, 100, 20], // city - list of prices on each day
"LA" : [90, 10, 40, 90, 12, 11]
"Amsterdam": [70, 20, 10, 30, 20, 80]
}
}Return list of all possible expenditures
One possible permuation is
Total expenditure = 30 + 130 + 100 = 260
260 < 'totalBudget' => include in output list
Ghosted. I didn't receive any feedback. I didn't solve round 2. So, I assume, I was rejected.