Low Level Design, Object Oriented, Graph Data Structure, Hashmap, Interview Questions.
by price) Hash Map + Sorted Set Next, step is to define the functions for the class as per the requirements of the problem: The constructor with all the Hash Maps: from sortedcontainers import SortedSet class Ecommerce: def __init__(self): self.seller_products = {} self.product_seller = {}