Skip to content

This is a header-only library applying the bubble sort and insertion sort algorithms

License

Notifications You must be signed in to change notification settings

Slyvred/Sort-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Sort CPP

This is a header-only library applying the bubble-sort and insertion-sort algorithms. It's compatible with Windows and Linux (untested on MacOS). PS: This code might be garbage because i'm retarded.

Simple example in C++

#include "sort.h"
#include <vector>

void main()
{
  sorting sort;
  std::vector<int> sequence = {5, 11, 22, 9, 21};
  
  // Bubble sort
  bool isSorted = sort.bubble(sequence);
  
  // Insertion sort
  bool isSorted = sort.insertion(sequence);
}

About

This is a header-only library applying the bubble sort and insertion sort algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages