An open API service indexing awesome lists of open source software.

https://github.com/sattarrasouli/data-structures-algorithms

A collection of data structures and algorithms implemented for learning and practice.
https://github.com/sattarrasouli/data-structures-algorithms

algorithm algorithms datastructures dsa javascript js typescript

Last synced: about 1 month ago
JSON representation

A collection of data structures and algorithms implemented for learning and practice.

Awesome Lists containing this project

README

          

# Data Structures & Algorithms

A collection of **data structures** and **algorithms** implemented in **JavaScript** and **TypeScript** for learning, practice, and interview preparation.

[![Language](https://img.shields.io/badge/language-TypeScript-blue?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![JavaScript](https://img.shields.io/badge/language-JavaScript-yellow?logo=javascript&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
[![Framework](https://img.shields.io/badge/tested%20with-Jest-red?logo=jest&logoColor=white)](https://jestjs.io/)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![Repo Size](https://img.shields.io/github/repo-size/sattarrasouli/data-structures-algorithms)](https://github.com/sattarrasouli/data-structures-algorithms)
[![Last Commit](https://img.shields.io/github/last-commit/sattarrasouli/data-structures-algorithms)](https://github.com/sattarrasouli/data-structures-algorithms/commits/main)
[![Stars](https://img.shields.io/github/stars/sattarrasouli/data-structures-algorithms?style=social)](https://github.com/sattarrasouli/data-structures-algorithms)

[![Algorithms](https://img.shields.io/badge/focus-Algorithms%20%26%20Data%20Structures-orange)]()
[![Code Style](https://img.shields.io/badge/code%20style-Prettier-ff69b4?logo=prettier)](https://prettier.io/)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)]()
[![OpenAI Powered](https://img.shields.io/badge/AI%20Learning%20with-ChatGPT-412991?logo=openai&logoColor=white)]()

## Features

- Implementations of popular algorithms and data structures
- Written in **TypeScript** and **JavaScript**
- Includes **Jest tests** for all algorithms
- Suitable for interview practice and self-learning

## Installation

```bash
# Clone the repository:
git clone https://github.com/sattarrasouli/data-structures-algorithms.git

# Get to the directory
cd data-structures-algorithms

# Install dependencies:
npm install

# Run All algorithm Jest tests, with:
npx jest
```

# Project Structure

```graphq
data-structures-algorithms/
├── src/
│ ├── javascript/ # All javascript source files
│ │ ├── linked-list/
│ │ ├── queue/
│ │ └── stack/
│ │
│ └── typescript/ # All TypeScript source files
│ ├── dynamic-programming/
│ └── sorting-and-search/

├── CONTRIBUTING.md
├── .prettierrc
├── package.json
├── tsconfig.json
├── jest.config.ts
└── README.md
```

# Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.