Skip to content

Commit f9c0578

Browse files
committed
Remove signature
1 parent b4a5aa0 commit f9c0578

23 files changed

+15
-70
lines changed

src/c/SentinelSearch.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
* Exemplo de Busca Sentinela em C
33
* Objetivo: Encontrar um valor em um vetor sem precisar testar todos os valores dentro do laço
4-
* Kelvin Salton do Prado - 2015
54
*/
65

76
#include <stdio.h>
@@ -25,7 +24,7 @@ int buscaSentinela(int vetor[], int chave){
2524
int main(){
2625

2726
int vetor[TAM_VETOR+1]; // Declara o vetor com +1 pois é a posição que será utilizada pela sentinela
28-
27+
2928
// Preenche o vetor com valores aleatórios 0-1000
3029
srand(time(NULL));
3130
for(int i = 0; i < TAM_VETOR; i++){
@@ -39,6 +38,6 @@ int main(){
3938
printf("\n\nValor %d encontrado na posicao %d.\n\n", vetor[res], res);
4039
else
4140
printf("\n\nValor não encontrado no vetor\n\n");
42-
41+
4342
return 0;
4443
}

src/cpp/Palindrome.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/*
22
isPalindrome Algorithm in C++
3-
Ricardo Ferreira Carvalheira - 2023
4-
https://github.com/ricardocarva
53
6-
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.
4+
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.
75
8-
Given a string s, return true if it is a palindrome, or false otherwise.
6+
Given a string s, return true if it is a palindrome, or false otherwise.
97
*/
108
#include <iostream>
119

@@ -53,4 +51,4 @@ int main() {
5351
std::cout << "The string is not a palindrome." << std::endl;
5452
}
5553
return 0;
56-
}
54+
}

src/cpp/TowerOfHanoi.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/*
22
Recursive Towers of Hanoi Solution
3-
Thomas Martin - 2023
4-
https://github.com/thomas-martin-uf
53
64
Problem Description: (from wikipedia)
75
The Tower of Hanoi is a mathematical game or puzzle consisting of three rods and a number of disks of various diameters,
@@ -67,4 +65,4 @@ int main()
6765
// output result
6866
cout << "Total moves needed to solve: " << num_moves;
6967
return 0;
70-
}
68+
}

src/go/dijkstra.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Grafos - Algoritmo de Dijkstra em Go
3-
* Danilo Moura - 2020
43
* Complexidade: Teta(n^2)
54
* Implementação utilizando matriz de adjacências (matriz de distância)
65
*

src/go/lista_sequencial_nao_ordenada.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Listas - Lista linear não ordenada
3-
* Danilo Moura - 2020
43
*
54
* Implementação da lista sequencial cujos elementos não estão ordenados
65
*

src/go/lista_sequencial_ordenada.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Listas - Lista linear ordenada
3-
* Danilo Moura - 2020
43
*
54
* Implementação da lista sequencial cujos elementos estão ordenados
65
*

src/java/AddTwoNumbers.java

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
import java.util.List;
44

55
// Utilized OpenJDK 17.0.3
6-
/*
7-
* @author Gabriel Nascimento. GitHub: Gabrielxdf
8-
*
9-
*/
106
public class AddTwoNumbers {
117
/**
128
* This program takes a list of numbers and checks if there are two numbers whose sum is equal to

src/java/BogoSort.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* @author Marcelo Wischniowski <marcelowisc at gmail.com>
3-
*/
41
public class BogoSort {
52

63
public static int[] bogoSort(int[] vector) {

src/java/BucketSort.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* @author Marcelo Wischniowski <marcelowisc at gmail.com>
3-
*/
41
public class BucketSort {
52

63
/**

src/java/HeapSort.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* @author Marcelo Wischniowski <marcelowisc at gmail.com>
3-
*/
41
public class HeapSort {
52

63
/**

src/java/RadixSort.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* @author Marcelo Wischniowski <marcelowisc at gmail.com>
3-
*/
41
public class RadixSort {
52

63
/**

src/java/ShellSort.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* @author Marcelo Wischniowski <marcelowisc at gmail.com>
3-
*/
41
public class ShellSort {
52

63
/**

src/javascript/InsertionSort.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//Diogo L.C. Felipe
2-
//diogomem@outlook.com
3-
41
/*
52
Insertion Sort is a sorting algorithm that works as follows:
63
1. It iterates through the array from the second position onward.
@@ -32,4 +29,4 @@ function swapPositions(array, firstPosition, secondPosition) {
3229
var unsortedArray = [54, 42, 11, 33, 24, 99, 77, 80];
3330
let sortedArrayViaInsertionSort = insertionSort(unsortedArray, 0, unsortedArray.length);
3431

35-
console.log(sortedArrayViaInsertionSort);
32+
console.log(sortedArrayViaInsertionSort);

src/javascript/InterpolationSearch.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/**
2-
* @author octaviolage
3-
* @version 1.0
4-
* @date 2022-07-31
52
* @description Busca por interpolação
63
* @reference https://en.wikipedia.org/wiki/Interpolation_search
74
*/
@@ -22,15 +19,15 @@ const interpolationSearch = (arr, first, last, value) => {
2219
return pos;
2320
else if (arr[pos] < value)
2421
return interpolationSearch(arr, pos + 1, last, value);
25-
else
22+
else
2623
return interpolationSearch(arr, first, pos - 1, value);
2724
}
2825
return -1;
2926
}
3027

3128
const main = () => {
3229
// The array needs to be sorted
33-
const arr = [10, 12, 13, 16, 18, 19, 20, 21,
30+
const arr = [10, 12, 13, 16, 18, 19, 20, 21,
3431
22, 23, 24, 33, 35, 42, 47];
3532
let n = arr.length;
3633

src/javascript/SelectionSort.js

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Diogo L.C. Felipe
2-
// diogomem@outlook.com
3-
41
/*
52
Selection Sort, or the selection sort algorithm, sorts a series of data
63
as follows:
@@ -16,14 +13,14 @@ function selectionSort(unsortedArray, start, end) {
1613
let smallestPosition = findSmallestPosition(unsortedArray, i, end);
1714
[unsortedArray[smallestPosition], unsortedArray[i]] = [unsortedArray[i], unsortedArray[smallestPosition]];
1815
}
19-
16+
2017
return unsortedArray;
2118
}
22-
19+
2320
function findSmallestPosition(unsortedArray, start, end) {
2421
let smallestPosition = start;
2522
let smallest = unsortedArray[start];
26-
23+
2724
for (let i = start; i < end; i++) {
2825
if (unsortedArray[i] < smallest) {
2926
smallest = unsortedArray[i];
@@ -32,9 +29,9 @@ function selectionSort(unsortedArray, start, end) {
3229
}
3330
return smallestPosition;
3431
}
35-
32+
3633
var unsortedArray = [54, 42, 11, 33, 24, 99, 77, 80];
3734
let sortedArrayViaSelectionSort = selectionSort(unsortedArray, 0, unsortedArray.length);
38-
35+
3936
console.log(sortedArrayViaSelectionSort);
40-
37+

src/kotlin/ExponentiationRecursive.kt

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* The *exponentiationRecursive* function presents the values of a number (*base*) raised by an *exponent*.
55
* In this function, the concept of *recursion* is used, in which the created function is called within it, one or more times internally of the same.
66
*
7-
* @author Algorithm version for Kotlin: Alfredo Paes <alfredo.alfpaes@gmail.com>
8-
* @see https://github.com/Alfredo-Paes
9-
*
107
* @param base is of type integer (Int)
118
* @param exponent is of type integer (Int)
129
*

src/kotlin/Factorial.kt

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
*
44
* The *factorial* function presents the values of multiplying *n numbers* by their predecessors greater than or equal to 1.
55
*
6-
* @author Algorithm version for Kotlin: Alfredo Paes <alfredo.alfpaes@gmail.com>
7-
* @see https://github.com/Alfredo-Paes
8-
*
96
* @param number is of type integer (Int)
107
*
118
* @return will return a number of type *Long* in which the type is assigned to the *factorial* variable.

src/kotlin/FibonacciRecursive.kt

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* The *fibonacci* function displays the values of the Fibonacci sequence in which, the first two terms of this sequence are less than or equal to 1, and each term that follows next will be the sum of the two previous numbers (0, 1, 1, 2, 3, 5, 8...).
55
* In this function, the concept of *recursion* is used, in which the created function is called within it, one or more times internally.
66
*
7-
* @author Algorithm version for Kotlin: Alfredo Paes <alfredo.alfpaes@gmail.com>
8-
* @see https://github.com/Alfredo-Paes
9-
*
107
* @param number is of type integer (Int)
118
*
129
* @return will return a logical condition if *number* is less than or equal to 1, returns 1 otherwise, the sum of itself using the concept of *recursion* to execute this sum.

src/python/arvore_binaria_de_busca.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""
22
Arvore Binaria de Busca em Python
3-
Kelvin Salton do Prado
4-
2015
53
"""
64

75

src/python/busca_em_grafo.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Grafos - Algoritmos de BFS e DFS em Python
2-
# Bruno Dantas de Paiva - 2021
3-
# https://github.com/DantasB
42

53
from collections import deque
64

src/python/counting_sort.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Algoritmo de ordenação Counting sort em Python
2-
# Vinicios Barbosa da Silva - 2023
3-
# https://github.com/ViniciosB
42

53
import random
64

src/python/interpolation_search.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Busca por interpolação em Python
2-
# Bruno Dantas de Paiva - 2021
3-
# https://github.com/DantasB
42

53

64
def interpolation_search(array, x):

src/python/maximo_minimo_dc.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Mínimo e Máximo de um array usando divide & conquer
2-
# Bruno Dantas de Paiva - 2021
3-
# https://github.com/DantasB
42

53
import random
64

0 commit comments

Comments
 (0)