Problem Set: Sorting. Unit X of Software Engineering Fellowship. Unit 1 of Breakthrough Fellowship
Respond to short response questions in clear, concise sentences directly within this file. Use markdown to ensure that your answers are formatted correctly.
Complete code challenges in exercises.js
.
Use Test Driven Development to guide you. Run npm install
to download dependencies. Run npm test
to run tests locally. Ensure all tests are passing before submitting this problem set.
There are four sorting algorithms listed below. For each one, please provide:
Insertion Sort:
Bubble Sort:
Merge Sort:
Quick Sort:
exercises.js
file, implement each of the sorting algorithms above without using JavaScript’s built-in Array.prototype.sort()
method. Each of the functions has been stubbed out for you, but you are welcome to create your own helper functions if needed.