Skip to content

Let's practice the algorithms and data-structures using Typescript, Rust and TDD (The exercises are from FreeCodeCamp)

License

Notifications You must be signed in to change notification settings

juliencrn/the-algorithm-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Algorithm Challenge

Tests

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.

git clone https://github.com/juliencrn/the-algorithm-challenge
cd the-algorithm-challenge

Typescript part

This project needs node and npm.

cd typescript
npm i
npm run test
npm run start # Watch mode

Rust part

This project requires rust and cargo-watch.

cd rust
cargo test
cargo watch -x test # Watch mode

Summary

Rust

src
└── project_euler
   ├── p001.rs
   ├── p002.rs
   ├── p003.rs
   └── p004.rs

The tree is generated using exa --tree --git-ignore rust/src.

Typescript

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