Endi ikkalali daraxtda tugunlar sonini hisoblang. Node sinfi quyidagicha ko'rinadi: class Node: def init(self): self.parent = None self.left = None self.right = None Algoritmning ishlash davri O ((n) bo'lishi kerak (n daraxtdagi tugunlar soni). Kiritish: Ikkalali daraxtning ildizi. Daraxtdagi tugunlar soni 1 dan 1000 gacha. Chiqish: Daraxtdagi tugunlar soni.
spam pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence