This collection is based on my original C# algorithms, now adapted and optimized for TypeScript. The purpose of this project is to provide beginner TypeScript and JavaScript programmers with a variety of algorithms to study, understand, and implement.
The main objective of this repository is to offer a hands-on learning resource for beginners. By exploring these algorithms, you will gain a deeper understanding of fundamental programming concepts and enhance your problem-solving skills in JavaScript and TypeScript.
- Easy-to-follow Code: Each algorithm is written in a clear and concise manner, making it accessible for beginners.
- Comprehensive Comments: Detailed comments are provided to explain the logic and flow of each algorithm.
- C# Comparisons: Where applicable, references to the original C# versions are included to show the transition between languages.
To get started with these algorithms:
-
Clone the Repository:
git clone https://github.com/markulie/typescript-algorithms.git cd typescript-algorithms
-
Install Dependencies (if any):
npm i
-
Install TypeScript and ts-node globally:
npm i -g typescript ts-node
-
Run the Algorithms:
ts-node basic/{fileName}.ts
Contributions are welcome! If you have any improvements, bug fixes, or new algorithms to add, please feel free to submit a pull request. Ensure your code is well-documented and follows the repository's coding standards.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or suggestions, feel free to open an issue
Thank you for checking out the JavaScript and TypeScript Algorithms repository!