Bu oddiy to'plam ma'lumotlar tuzilishini amalga oshirish uchun matritsalardan foydalanadi: ``` python sinf MinHeap: def __init__(self): self.heap = [] def insert(self, elem): self.heap.append(elem) self.sift_up((self.heap) - 1) def sift_up(self, idx): parent = (idx - 1) // 2 if idx > 0 and self.heap[parent] > self.heap[idx]: self.heap[parent], self.heap[idx] = self.heap[idx], self.ext[parent] self.sift_up(deparent) extract_min: if self.ext[idx] self.self.ext[idx] self.self= self.ext[id
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence