Software Engineer Graduate Interview Questions

4,496 software engineer graduate interview questions shared by candidates

Q1: You need to check quality of the website. Your function is receiving 'hompage' as input and you need to check if the website is GOOD or BAD. Good website need maximum 5 clics(steps) to reach every page, on the other side BAD website is website where it need more than 5 steps to reach at least one page. You are provided function getDirectPages(page) which is returning direct pages accessible from current page. Ex of GOOD websites: homepage -> page1 | ->page3 -> page 9 -> page8 page6 | -> page7 -> page5 or homepage -> page1 | ->page3 -> page 9 -> page5 -> page2 -> page8 page6 | -> page7 -> page8 (it is good website since page 8 is reachable with less than 5 steps) Ex of BAD websites: homepage -> page1 | ->page3 -> page9 -> page5 -> page2 -> page8 page6 | -> page7 -> page4 (bad website since page 8 is reachable with 6 steps) Q2. You are given user request for hotels in format: { id: 1 -> name: 'Hotel name', id: 2 -> name: 'Yet another hotel name', id: 3 -> name: 'This is also a hotel name', } You are also given a list of paris hotels ids: [32, 1, 45, 123, 456, 2, 52, 78, 12, 33, ....] Your task is to write a function that will return you sorted list of hotel names from user request, where all hotels are located in paris. Follow up question: what if the list of hotel ids is very big ? Result is: Hotel name Yet another hotel name'
avatar

Graduate Software Engineer

Interviewed at Booking.com

4
Nov 8, 2017

Q1: You need to check quality of the website. Your function is receiving 'hompage' as input and you need to check if the website is GOOD or BAD. Good website need maximum 5 clics(steps) to reach every page, on the other side BAD website is website where it need more than 5 steps to reach at least one page. You are provided function getDirectPages(page) which is returning direct pages accessible from current page. Ex of GOOD websites: homepage -> page1 | ->page3 -> page 9 -> page8 page6 | -> page7 -> page5 or homepage -> page1 | ->page3 -> page 9 -> page5 -> page2 -> page8 page6 | -> page7 -> page8 (it is good website since page 8 is reachable with less than 5 steps) Ex of BAD websites: homepage -> page1 | ->page3 -> page9 -> page5 -> page2 -> page8 page6 | -> page7 -> page4 (bad website since page 8 is reachable with 6 steps) Q2. You are given user request for hotels in format: { id: 1 -> name: 'Hotel name', id: 2 -> name: 'Yet another hotel name', id: 3 -> name: 'This is also a hotel name', } You are also given a list of paris hotels ids: [32, 1, 45, 123, 456, 2, 52, 78, 12, 33, ....] Your task is to write a function that will return you sorted list of hotel names from user request, where all hotels are located in paris. Follow up question: what if the list of hotel ids is very big ? Result is: Hotel name Yet another hotel name'

Viewing 2831 - 2840 interview questions

Glassdoor has 4,496 interview questions and reports from Software engineer graduate interviews. Prepare for your interview. Get hired. Love your job.