swadhinbiswas solve more problem · 5/11/2025
8bcf412
9 lines · 139 Bytes
1
2
3
4
5
6
7
8
9
from typing import List

class Solve:
  def heapsort(array:List[int]):

    def _heapify(arr:List[int],n,i):
      left=2*i+1
      right=