leetcode.cn 2025-09-20
🟡3508.implement-router
🏷️ Tags
#design #queue #array #hash_table #binary_search #ordered_set
🟡3508.implement-router
🏷️ Tags
#design #queue #array #hash_table #binary_search #ordered_set
Telegraph
implement-router
请你设计一个数据结构来高效管理网络路由器中的数据包。每个数据包包含以下属性:
leetcode.cn 2025-09-21
🔴1912.design-movie-rental-system
🏷️ Tags
#design #array #hash_table #ordered_set #heap_priority_queue
🔴1912.design-movie-rental-system
🏷️ Tags
#design #array #hash_table #ordered_set #heap_priority_queue
Telegraph
design-movie-rental-system
你有一个电影租借公司和 n 个电影商店。你想要实现一个电影租借系统,它支持查询、预订和返还电影的操作。同时系统还能生成一份当前被借出电影的报告。 所有电影用二维整数数组 entries 表示,其中 entries[i] = [shopi, moviei, pricei] 表示商店 shopi 有一份电影 moviei 的拷贝,租借价格为 pricei 。每个商店有 至多一份 编号为 moviei 的电影拷贝。 系统需要支持以下操作:
leetcode.com 2025-09-21
🔴1912.design-movie-rental-system
🏷️ Tags
#design #array #hash_table #ordered_set #heap_priority_queue
🔴1912.design-movie-rental-system
🏷️ Tags
#design #array #hash_table #ordered_set #heap_priority_queue
Telegraph
design-movie-rental-system
You have a movie renting company consisting of n shops. You want to implement a renting system that supports searching for, booking, and returning movies. The system should also support generating a report of the currently rented movies. Each movie is given…