aalhour / aalhour/C-Sharp-Algorithms
MaxHeap bad algorithm.
Abierto
bug
good first issue
- Lenguaje dominante
- C#
- Estrellas
- 6.2k
- Forks
- 1.4k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
# steps to reproduce
Write a loop, from 1 to 80000, each time add a random int to the max heap.
In theory it takes very little time(NlogN, N=80000, <1sec ), but the program does take a long time.
I'v also tested the BinaryHeap in https://github.com/SolutionsDesign/Algorithmia, it performs well, so it is probably due to the bad algorithm.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.