← ALL NOTES
Array

1912. Design Movie Rental System

Design a movie-rental system: n shops, entries = [shop, movie, price]. Support search(movie) (5 cheapest available copies, ties broken by smaller shop); rent(shop, movie); drop(shop, movie); and…

Loading…