Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliencrn/the-algorithm-challenge
Let's practice the algorithms and data-structures using Typescript, Rust and TDD (The exercises are from FreeCodeCamp)
https://github.com/juliencrn/the-algorithm-challenge
algorithms data-structures freecodecamp project-euler rosetta-code rust tdd typescript
Last synced: 18 days ago
JSON representation
Let's practice the algorithms and data-structures using Typescript, Rust and TDD (The exercises are from FreeCodeCamp)
- Host: GitHub
- URL: https://github.com/juliencrn/the-algorithm-challenge
- Owner: juliencrn
- License: mit
- Created: 2021-01-06T18:45:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T23:24:12.000Z (over 2 years ago)
- Last Synced: 2024-10-12T00:41:23.795Z (about 1 month ago)
- Topics: algorithms, data-structures, freecodecamp, project-euler, rosetta-code, rust, tdd, typescript
- Language: TypeScript
- Homepage: https://www.freecodecamp.org/learn/
- Size: 144 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Algorithm Challenge
[![Tests](https://github.com/juliencrn/the-algorithm-challenge/actions/workflows/tests.yml/badge.svg)](https://github.com/juliencrn/the-algorithm-challenge/actions/workflows/tests.yml)
I started this repo using Typescript, but now, I want like to practice Rust too. So let's practice the algorithms and data-structures using Typescript and/or Rust! (The exercises are from FreeCodeCamp)
## Process
I copy and paste the instructions from FreeCodeCamp, then I write the tests and finally I try to resolve the problem.## Installation
### Common
Download the project locally.
```bash
git clone https://github.com/juliencrn/the-algorithm-challenge
cd the-algorithm-challenge
```### Typescript part
This project needs `node` and `npm`.```bash
cd typescript
npm i
npm run test
npm run start # Watch mode
```### Rust part
This project requires `rust` and [`cargo-watch`](https://github.com/watchexec/cargo-watch).```bash
cd rust
cargo test
cargo watch -x test # Watch mode
```## Summary
### Rust
```bash
src
└── project_euler
├── p001.rs
├── p002.rs
├── p003.rs
└── p004.rs
```The tree is generated using `exa --tree --git-ignore rust/src`.
### Typescript
```bash
src
├── algorithms
│ ├── basic-sorting
│ │ ├── bubble-sort
│ │ ├── insertion-sort
│ │ ├── merge-sort
│ │ ├── quick-sort
│ │ └── selection-sort
│ ├── find-the-symmetric-difference
│ ├── inventory-update
│ ├── no-repeats-please
│ └── pairwise
└── data-structures
├── circular-queue
├── priority-queue
├── queue
└── stack
```The tree is generated using `exa --tree --git-ignore typescript/src -D`.
## License
[MIT](https://github.com/juliencrn/the-algorithm-challenge/blob/main/LICENSE)