The Wayback Machine - https://web.archive.org/web/20220706130434/https://github.com/topics/algorithm-challenges
Skip to content
#

algorithm-challenges

Here are 1,425 public repositories matching this topic...

Boiarshinov
Boiarshinov commented Jun 21, 2022

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

My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:) 我的Leetcode解答。所有的问题都支持C++语言,一部分问题支持Java语言。近乎所有问题都会提供多个算法解决。大家加油!:)
  • Updated Jul 3, 2022
  • C++

hackerrank solutions github | hackerrank all solutions | hackerrank solutions for java | hackerrank video tutorial | hackerrank cracking the coding interview solutions | hackerrank data structures | hackerrank solutions algorithms | hackerrank challenge | hackerrank coding challenge | hackerrank algorithms solutions github| hackerrank problem solving | hackerrank programs solutions | JAVAAID |all hackerrank solutions | Coding Interview Preparation
  • Updated May 26, 2022
  • Java
geeks-for-geeks-solutions
Abhinandan1414
Abhinandan1414 commented May 7, 2020

The mentioned file needs to be re-written. There is no concept of overflow in Circular Queue as it wraps up. What I mean is:
Test Driver Code:
public static void main(String[] agrs) {
CircularQueue q = new CircularQueue(5);
q.insert(10);
q.insert(20);
q.insert(30);
q.insert(40);
q

help wanted good first issue question hacktoberfest
carolfortunato
carolfortunato commented Oct 10, 2020

Dado um número de CPF, o algoritmo deve validar se o número dado é um número válido.
Detalhes de como o cálculo funciona pode ser encontrado aqui

Descrição da Função
A função deve ser capaz de receber o CPF como Integer ou String.

Se for String, deve retirar pontos para manter somente os números.

Em seguida, deve fazer os cálculos da validação

good first issue level-200

Improve this page

Add a description, image, and links to the algorithm-challenges topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the algorithm-challenges topic, visit your repo's landing page and select "manage topics."

Learn more