Low Level Design, Object Oriented, Graph Data Structure, Hashmap, Interview Questions.
seller_id): # Add a seller if seller_id not in self.seller_products: self.seller_products[seller_id] = set() Then we add the products under a seller and a category def addProduct(self, seller_id, prod_id, price, cat_ids): # Add a product try: # Relationship b/w seller and product