Skip to content

claesgill/sorting_algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms

Table of content

  1. Run
  2. Contribute
    1. Getting started
    2. Rules

Run

The following command will build and run the program:

make
Build
make build

Contribute

Feel free to contribute with any sorting algorithms you want, as long as you follow the rules 🙌

Getting started

Follow the steps bellow to get started!

  1. Make sure to read the rules section.
  2. Fork this repo by clicking the top right fork button.
  3. Clone the reposetory you just forked.
  4. Create a new branch:
    1. git checkout -b new_branch_name
  5. Make your changes and push your code.
  6. Lastly, create a pull request to this reposetorys main branch.

Happy coding ⌨️

Rules

TL;DR Follow the same pattern as the bubbleSort() does.

  1. Implement the new sorting algorithm in the files:
    src/algorithms.h
    src/algorithms.cpp
    
  2. Use the getUnsortedVector() as the vector to sort.
  3. Use the VERIFY_SORTED() to verify that your vector is properly sorted.
  4. NO thirdparty packages.
  5. main.cpp should be able to run.
  6. Have fun! 🎉