sorting-algorithms
Here are 3,568 public repositories matching this topic...
MinHeap and MaxHeap implementation are broken.
Instance of these heaps couldn't be instanciated with any not empty list of elements.
Here is a test code to reproduce:
@Test
void createFromList() {
var elements = List.of(
new HeapElement(5)
);
MaxHeap heap = new MaxHeap(elements);
//similar with MinHeap
}
Stacktrace:
java.lang.IndexOut
-
Updated
Jul 1, 2022 - JavaScript
You may use this guide to make quality contributions at Hacktoberfest 2020: Hacktoberfest 2020 guide
To begin contributing, you shall get a quick overview of how Cosmos is used today. Cosmos is one of the most extensive code database and is used as:
- A datastore for various projects (such as [Quark](https://github.com/OpenGenus/
-
Updated
Jul 2, 2022 - Java
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.
-
Updated
Feb 1, 2022 - Java
-
Updated
May 13, 2022
-
Updated
Jun 10, 2022 - TypeScript
-
Updated
May 22, 2022 - JavaScript
-
Updated
Dec 25, 2021 - Java
-
Updated
Sep 14, 2020 - JavaScript
-
Updated
Aug 26, 2017 - TypeScript
-
Updated
Jun 11, 2022 - Java
-
Updated
Jul 4, 2022 - C#
-
Updated
Jan 6, 2022 - Ruby
-
Updated
Jan 9, 2020 - JavaScript
-
Updated
Jul 26, 2021 - HTML
-
Updated
Dec 2, 2021 - C++
-
Updated
Feb 11, 2022 - Java
-
Updated
Nov 7, 2018 - Ruby
-
Updated
May 29, 2021
-
Updated
Apr 24, 2015 - Python
-
Updated
Feb 27, 2022 - JavaScript
-
Updated
Jun 30, 2022 - Kotlin
-
Updated
Apr 13, 2022 - C++
-
Updated
Dec 19, 2019 - Python
- Suggestion (@lucblassel )
In algorithms with variants, like Shell Sort, should have a way to the user select an variant to be visualized. - How it could be implemented:
Add a Input Box, like a drop list, in front of algorithm selection box. - Are you up to do it?
I @LucasPilla will be working on this, feel free to contribute!
-
Updated
Jul 5, 2022 - Julia
-
Updated
Oct 15, 2020 - Java
Improve this page
Add a description, image, and links to the sorting-algorithms topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sorting-algorithms topic, visit your repo's landing page and select "manage topics."
We have a lot of
is_prime
(or similar) functions: https://github.com/TheAlgorithms/Python/search?p=4&q=is_prime, https://github.com/TheAlgorithms/Python/search?q=isPrime, data_structures/hashing/number_theory/prime_numbers, etc. Shall we use one common function for that exactly identical