Low Level Design, Object Oriented, Graph Data Structure, Hashmap, Interview Questions.
price of product try: prod_node = self.nodes[(prod_id, "PRODUCT")] seller_id = self.graph.getChildren(prod_node, "SELLER") if len(seller_id) > 0: seller_id = seller_id[0].id else: raise Exception("Seller ID Missing") cat_ids = self.graph.getChildren(prod_node, "CATEGORY") if len(cat_ids) == 0: