+
Skip to content

MedSaher/algorithmes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithmes

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.

Table of Contents

Files Overview

String Manipulation

  • 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.

Mathematical Functions

  • 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.

Sorting and Array Manipulation

  • 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.

Miscellaneous Algorithms

  • 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.

Utility Scripts

  • explain.sh: Bash script to explain the usage of certain algorithms.

Installation

  1. Clone this repository:
    git clone https://github.com/MedSaher/algorithmes.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载