This repository contains various algorithm implementations in Go, focusing on foundational tasks such as sorting, string manipulation, and mathematical operations. Each file addresses a specific algorithm or function, implemented and tested to be efficient and clear.
- alphacount.go: Counts the number of alphabetic characters in a string.
- capitalize.go: Capitalizes the first letter of each word.
- isalpha.go: Checks if a string contains only alphabetic characters.
- islower.go: Checks if a string contains only lowercase characters.
- isupper.go: Checks if a string contains only uppercase characters.
- isprintable.go: Checks if a string contains only printable characters.
- isnumeric.go: Checks if a string contains only numeric characters.
- rot14.go: Applies a ROT14 cipher to a string.
- split.go: Splits a string based on a separator.
- splitwhitespaces.go: Splits a string based on whitespace characters.
- tolower.go: Converts a string to lowercase.
- toupper.go: Converts a string to uppercase.
- trimatoi.go: Trims leading and trailing spaces and converts to an integer.
- join.go: Joins elements of a string array with a separator.
- lookup.go: Performs a lookup in a string array.
- fibonacci.go: Calculates the Fibonacci sequence.
- findnextprime.go: Finds the next prime number greater than a given integer.
- isprime.go: Checks if a number is prime.
- sqrt.go: Computes the square root of a number.
- max.go: Finds the maximum number in an array.
- abort.go: Handles program termination with a signal.
- activebits.go: Counts the number of active (set) bits in a binary representation.
- sort.go: General sorting function.
- sortintegertable.go: Sorts an array of integers.
- swap.go: Swaps two variables.
- unmatch.go: Finds the first element without a match in an array.
- foreach.go: Applies a function to each element of an array.
- map.go: Maps a function to each element of an array.
- issorted.go: Checks if an array is sorted.
- basicatoi2.go: Converts a string to an integer with error handling.
- eightqueens.go: Solves the eight queens puzzle.
- enigma.go: Simple enigma cipher.
- printcomb.go: Prints all combinations of numbers.
- printnbrbase.go: Prints a number in a specified base.
- explain.sh: Bash script to explain the usage of certain algorithms.
- Clone this repository:
git clone https://github.com/MedSaher/algorithmes.git