A comprehensive collection of the most popular design patterns, algorithms, and data structures implemented in TypeScript. This project serves as both a learning resource and a reference guide for developers looking to master fundamental computer science concepts.
This repository contains practical implementations and explanations of:
- 🏗️ Design Patterns - Creational, Structural, and Behavioral patterns
- ⚡ Algorithms - Sorting, searching, graph algorithms, dynamic programming, and more
- 📊 Data Structures - Arrays, linked lists, trees, graphs, heaps, hash tables, and beyond
Each topic includes:
- ✅ TypeScript implementation with full type safety
- 📚 Detailed explanations and use cases
- ⏱️ Time and space complexity analysis
- 🧪 Comprehensive test cases
# Clone the repository
git clone https://github.com/kostyngricuk/patterns-algorithms-and-data-structures.git
# Navigate to the project directory
cd patterns-algorithms-and-data-structures
# Install dependencies
yarn install# Start the development server
yarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
yarn typecheckyarn serveUSE_SSH=true yarn deployGIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Follow TypeScript best practices
- Add unit tests for all implementations
- Update documentation accordingly
- Ensure code passes linting and type checking
This project is licensed under the MIT License - see the LICENSE file for details.
- Author: Kanstantsin Hrytsuk
- GitHub: @kostyngricuk
- Project Link: https://github.com/kostyngricuk/patterns-algorithms-and-data-structures
⭐ Star this repository if you find it helpful! ⭐