Software Development Engineer Ii Interview Questions

2,270 software development engineer ii interview questions shared by candidates

Given an array of strings schedule that represents the schedule of bus arrival times and a string time that represents the current time, find out how long you have to wait for the next bus. If there are no more buses scheduled for the day, return "-1". Time is represented as a string in the form of HH:MM (in the 24-hour format). Bus arrival times are sorted in chronological order. Please assume that the bus leaves at the same time that it arrives. So, if a bus was scheduled to come before the current time, it has already left.
avatar

Software Development Engineer (SDE) II

Interviewed at StubHub

2.4
Nov 3, 2023

Given an array of strings schedule that represents the schedule of bus arrival times and a string time that represents the current time, find out how long you have to wait for the next bus. If there are no more buses scheduled for the day, return "-1". Time is represented as a string in the form of HH:MM (in the 24-hour format). Bus arrival times are sorted in chronological order. Please assume that the bus leaves at the same time that it arrives. So, if a bus was scheduled to come before the current time, it has already left.

Viewing 861 - 870 interview questions

Glassdoor has 2,270 interview questions and reports from Software development engineer ii interviews. Prepare for your interview. Get hired. Love your job.