Snippets - Page 2 of 2

Browse by topic

permutations

Published by Eko Spt 1 min read
Generates all permutations of an array's elements (contains duplicates).

quickSort

Published by Eko Spt 1 min read
Sorts an array of numbers, using the quicksort algorithm.

luhnCheck

Published by Eko Spt 1 min read
Implementation of the Luhn Algorithm used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers etc.

selection Sort

Published by Eko Spt 1 min read
Sorts an array of numbers, using the selection sort algorithm.