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

https://github.com/1git2clone/hackerrank-hw

University homework assignments rewritten in rust as well as testing
https://github.com/1git2clone/hackerrank-hw

binary-gcd euclidean-algorithm extended-gcd gcd greatest-common-divisor homework homework-exercises lcm least-common-multiple modular-arithmetic testing

Last synced: 26 days ago
JSON representation

University homework assignments rewritten in rust as well as testing

Awesome Lists containing this project

README

        

# Hackerrank

[![Build Icon]][Build Status] [![License Icon]][LICENSE]

[Build Icon]: https://img.shields.io/github/actions/workflow/status/1git2clone/hackerrank-hw/ci.yml?branch=main
[Build Status]: https://github.com/1git2clone/hackerrank-hw/actions?query=branch%3Amain
[License Icon]: https://img.shields.io/badge/license-MIT-blue.svg
[LICENSE]: LICENSE

University homework rewritten in Rust with the same testing as well.

## [Homework 1](https://www.hackerrank.com/contests/citb106-f2024-hw1/challenges)

- *16/11/2024*

Mainly revolves around modular arithmetic,
[gcd](https://en.wikipedia.org/wiki/Greatest_common_divisor) and
[lcm](https://en.wikipedia.org/wiki/Least_common_multiple). The solutions
involving the greatest common divisor implement the [binary GCD
algorithm](https://en.wikipedia.org/wiki/Binary_GCD_algorithm) (Stein's
algorithm) instead of the [Euclidean
algorithm](https://en.wikipedia.org/wiki/Euclidean_algorithm).

- [x] [Task 1](https://www.hackerrank.com/contests/citb106-f2024-hw1/challenges/discrete-mathematics-and-programming-hw-1-task-1)
([src](./src/hw1/task_1.rs))
- [x] [Task 2](https://www.hackerrank.com/contests/citb106-f2024-hw1/challenges/discrete-mathematics-and-programming-hw-1-task-2)
([src](./src/hw1/task_2.rs))
- [x] [Task 3](https://www.hackerrank.com/contests/citb106-f2024-hw1/challenges/discrete-mathematics-and-programming-hw-1-task-3)
([src](./src/hw1/task_3.rs))

## [Homework 2](https://www.hackerrank.com/contests/citb106-f2024-hw2/challenges)

- *23/11/2024*

- [x] [Task 1](https://www.hackerrank.com/contests/citb106-f2024-hw2/challenges/discrete-mathematics-and-programming-hw-2-task-1)
([src](./src/hw2/task_1.rs))
- [x] [Task 2](https://www.hackerrank.com/contests/citb106-f2024-hw2/challenges/discrete-mathematics-and-programming-hw-2-task-2)
([src](./src/hw2/task_2.rs))
- [x] [Task 3](https://www.hackerrank.com/contests/citb106-f2024-hw2/challenges/discrete-mathematics-and-programming-hw-2-task-3)
([src](./src/hw2/task_3.rs))

## [Homework 3](https://www.hackerrank.com/contests/citb106-f2024-hw3/challenges)

- *30/11/2024*

- [x] [Task 1](https://www.hackerrank.com/contests/citb106-f2024-hw3/challenges/discrete-mathematics-and-programming-hw-3-task-1)
([src](./src/hw3/task_1.rs))

## [Homework 4](https://www.hackerrank.com/contests/citb106-f2024-hw4/challenges)

- *07/12/2024*

- [x] [Task 1](https://www.hackerrank.com/contests/citb106-f2024-hw4/challenges/discrete-mathematics-and-programming-hw-4-task-1/problem)
([src](./src/hw4/task_1.rs))
- [x] [Task 2](https://www.hackerrank.com/contests/citb106-f2024-hw4/challenges/discrete-mathematics-and-programming-hw-4-task-2)
([src](./src/hw4/task_2.rs))