My solutions to various programming problems
Find a file
2024-12-21 14:02:36 +05:00
advent-of-code Refactor days 7-9 of AoC 2023 2024-12-21 13:40:06 +05:00
codeforces Add editorconfig 2024-12-09 13:08:53 +05:00
codewars Add editorconfig 2024-12-09 13:08:53 +05:00
leetcode Add editorconfig 2024-12-09 13:08:53 +05:00
one-billion-row docs: improve 1brc description 2024-09-04 01:21:28 +05:00
.editorconfig Add editorconfig 2024-12-09 13:08:53 +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 Update go module information 2024-12-14 22:45:23 +05:00
LICENSE.txt Update repository information 2024-12-21 14:02:36 +05:00
README.md Update repository information 2024-12-21 14:02:36 +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.

Languages

Elixir

Elixir, being a functional language, does a good job of showing how to solve a problem in a more mathematical language.

cd random-problem
mix test
mix solve

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.

It's quite a beautiful language.

cd random-problem
ruby test.rb
ruby main.rb

Rust

Sometimes I use Rust to solve problems where memory management won't become an obstacle to the solution. It is also well suited for competitive programming.

cd random-problem
cargo test
cargo run

Kotlin

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

In my opinion, the language inherited too many problems from Java. Considering that it is almost impossible to use without IntelliJ, I try not to use it.