Nim
Nim copied to clipboard
Collection of various algorithms implemented in Nim for educational purposes.
In this PR I propose to use [nimalyzer](https://www.laeran.pl/repositories/nimalyzer/wiki?name=About) as a static analysis tool for this repository. I add a workflow `nimalyzer.yml` and a config file `.nimalyzer.cfg`. Please notice that some...
[Nim 2.0.4 was relleased](https://nim-lang.org/blog/2024/04/16/versions-1620-204-released.html). This PR makes a suitable update. Similar to #67.
There is this new style formatter [nph](https://github.com/arnetheduck/nph) proposed by @arnetheduck that could be used in place of nimpretty. What do you think?
I added the sorts folder for future sorting algorithms and within is an implementation of the insertion sort algorithm.
Manacher's Algorithm finds the longest palindromic factor (substring) in linear time in the length of the string input.
Add multiple sorting algorithms: insertion sort, selection sort, bubble sort, merge sort with a file for some common tests. I hesitate to add additional tests to illustrate the stability property...
### Description The repository was recently created, so we need people that are proficient and experienced in the Nim programming language. Anyone interested, feel free to comment here and [contribute](https://github.com/TheAlgorithms/Nim/blob/main/CONTRIBUTING.md)...
Add file bogo_sort.nim within a new `sorts` directory, includes tests and runnableExamples