This is a mini project implemented in TypeScript that demonstrates a sorting utility for different data structures. The project includes a Sorter
abstract class that provides a common interface for sorting various collections, such as arrays of numbers, strings, and linked lists.
To use this project, you need to have Node.js and npm installed on your machine.
- Clone the repository:
git clone https://github.com/1mimhe/sorter
- Navigate to the project directory:
git clone https://github.com/your-username/sorter
- Install dependencies:
npm install
- Run the project (It will run index.ts file, includes an example, you should change it):
npm start
The example is in index.ts
, You can see its results with npm start
command (to run the project).