An open API service indexing awesome lists of open source software.

https://github.com/medunes/dsa-go

Data Structure Algorithms in Go
https://github.com/medunes/dsa-go

Last synced: 2 months ago
JSON representation

Data Structure Algorithms in Go

Awesome Lists containing this project

README

          

# DSA Go
[![tests](https://github.com/MedUnes/dsa-go/actions/workflows/tests.yml/badge.svg)](https://github.com/MedUnes/dsa-go/actions/workflows/tests.yml)

* A playground for learning DSA (Data Structure & Algorithms) in Go programming language

# Content

## Algorithms

### [Sorting](./pkg/algorithms/sort.go)

1- [Selection Sort](https://en.wikipedia.org/wiki/Selection_sort)

2- [Insertion Sort](https://en.wikipedia.org/wiki/Insertion_sort)

3- [Bubble Sort](https://en.wikipedia.org/wiki/Bubble_sort)

4- [Quick Sort / Lomuto](https://en.wikipedia.org/wiki/Quicksort#Lomuto_partition_scheme)

## Running The tests
```bash
$ medunes@medunes:~/projects/dsa-go$ make test
go run gotest.tools/gotestsum@latest --format=testdox
github.com/medunes/dsa-go:

github.com/medunes/dsa-go/dsa:
✓ Insertion (0.00s)
✓ Insertion array with zeroes (0.00s)
✓ Insertion ascending order (0.00s)
✓ Insertion boundary values (0.00s)
✓ Insertion descending order (0.00s)
✓ Insertion descending order with duplicates (0.00s)
✓ Insertion duplicate elements (0.00s)
✓ Insertion empty (0.00s)
✓ Insertion large array (0.00s)
✓ Insertion mixed sign numbers (0.00s)
✓ Insertion more than one element (0.00s)
✓ Insertion more than one element 2 (0.00s)
✓ Insertion more than one element with repetition (0.00s)
✓ Insertion negative numbers (0.00s)
✓ Insertion one element (0.00s)
✓ Insertion random order (0.00s)
✓ Insertion same element (0.00s)
✓ Insertion single negative element (0.00s)
✓ Selection (0.00s)
✓ Selection array with zeroes (0.00s)
✓...
✓...
DONE 36 tests in 0.081s
```