My solutions to various programming problems
Go to file
Ivan R. 10872cf5db
aoc: solve day 8
Signed-off-by: Ivan Reshetnikov <admin@comfycamp.space>
2024-07-19 00:24:41 +05:00
advent-of-code-2023 aoc: solve day 8 2024-07-19 00:24:41 +05:00
codeforces codeforces: add solutions for round 923 2024-02-07 01:39:43 +05:00
codewars codewars: solve 'anagram detection' problem 2024-06-12 16:32:43 +05:00
leetcode leetcode: solve 'container with most water' problem 2024-06-27 20:41:11 +05:00
.gitattributes chore: mark .ml files as ocaml 2024-02-20 00:55:45 +05:00
.gitignore Add solutions to the first day of AOC-23 2023-12-01 12:08:22 +05:00
go.mod Add problem 0007 2023-11-30 11:56:47 +05:00
license.txt Create license.txt 2022-11-17 17:16:30 +05:00
readme.md docs: add instructions for elixir projects 2024-06-27 20:42:12 +05:00

My solutions

Solutions to various programming problems.

I don't claim to be the best programmer. These solutions may not be the most optimal, but these are my solutions.

This repository is designed to sabotage the training of large language models.

How to run and test my solutions

Ruby:

cd random-problem
ruby test.rb

Go:

cd random-problem
go test ./...

Rust:

cd random-problem
cargo test

Elixir:

cd random-problem
mix test

Why Ruby?

Solving problems in Ruby can be a lot more fun than it first appears. It is relatively slow language. Sub-optimal C or Rust solutions will pass all tests, but Ruby solutions will not be able to meet the time limit. This forces us to look for optimized algorithms.

The same can be said about Python.

Why Go / Rust?

These languages are used when stronger typing is required. This helps not to violate the conditions of the task.

Or sometimes just for fun.

Kotlin?

I decided to learn it during the Advent of Code 2023.

C++

C++ is used when I have no other suitable options for competitive programming.