Software Engineer • Intern
Software Engineer • Intern
High QualityPrep Other Coding Questions Asked by IBM
Continue with targeted prep from IBM's coding question bank.
Interview Summary
Round 1: Coding
Question: Determine the minimum number of recommendation engines required to process all sessions without overlapping. Each session requires exactly one recommendation engine.
Round 2: Coding
Question: Find the keys where the recommended products differ between two algorithms. Only consider keys present in both algorithms' recommendations.
Interview Details
The coding questions I encountered were:
Question 1: An online streaming platform tracks n user sessions. Each session has a specific start and end time, provided as a 2D array, sessionTimings, of size n x 2, where each element represents the [startTime, endTime] of a session.
Implement a function that determines the minimum number of recommendation engines required to process all sessions without overlapping sessions. Each session requires exactly one recommendation engine.
The function getMinEngines will take one input:
int sessionTimings[n][2]: each session's start and end times
The function should return the minimum number of engines needed to process all
Unlock Full Details
Create a free account to unlock this interview experience report.