Data Interview Questions

132,918 data interview questions shared by candidates

Code a data structure which allows us to store and retrieve items by key up to a fixed capacity. When we add items over capacity we free up space by removing an item first: 1) remove any expired item first 2) If there are no expired items, find the items with the lowest priority number, and remove the one which has been used least recently of them Optimise for time.
avatar

Data Engineer

Interviewed at bp

3.8
Nov 2, 2023

Code a data structure which allows us to store and retrieve items by key up to a fixed capacity. When we add items over capacity we free up space by removing an item first: 1) remove any expired item first 2) If there are no expired items, find the items with the lowest priority number, and remove the one which has been used least recently of them Optimise for time.

Viewing 711 - 720 interview questions

Glassdoor has 132,918 interview questions and reports from Data interviews. Prepare for your interview. Get hired. Love your job.