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
- Host: GitHub
- URL: https://github.com/1git2clone/hackerrank-hw
- Owner: 1Git2Clone
- Created: 2024-11-17T12:04:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T21:15:40.000Z (5 months ago)
- Last Synced: 2025-02-06T08:44:42.620Z (3 months ago)
- Topics: binary-gcd, euclidean-algorithm, extended-gcd, gcd, greatest-common-divisor, homework, homework-exercises, lcm, least-common-multiple, modular-arithmetic, testing
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]: LICENSEUniversity 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))