kvladsrc/gym

Codeforces solutions.

1

stars

231

commits

C++

primary language

Sep 7, 2026

updated

README

Algorithmic Playground & Coding Challenges

I find that I don't understand things unless I try to program them.

— Donald Knuth

...What i program, i do not understand either.

This repository is a curated collection of my programming solutions, algorithm experiments, and learning notes on my computer science journey. You'll find both educational implementations and competitive programming solutions.

Note: Code is written for educational purposes, not optimized for production, and may contain errors.

Repository Structure

Codeforces Solutions

cpp/codeforces — Solutions from Codeforces.

Algorithms & Data Structures

cpp/warmup — Educational implementations of core algorithms, data structures and techniques. Tests for this section were written with the help of Gemini CLI.

SICP solutions

lisp/sicp — My first experience in programming.

SICP

Neural Network

neural_network/nn_lib — An educational C++ implementation of a fully connected neural network and backpropagation using only the standard library. It trains on a CPU to about 95% accuracy on MNIST.

Pet Project (Evolutionary Art)

pet_project — An experimental evolutionary algorithm that draws images using pixels, utilizing an ImageNet-trained model as the fitness function. It "evolves" images from random pixels into recognizable shapes.

Granny Smith Indigo Bird Ladybug

Production Infrastructure

production — Production-grade infrastructure managed with GitOps and infrastructure as code. It includes reproducible Bazel builds, CI checks, speculative jobs, gated changes, and single sign-on for deployed services.

PipeLLM

pipellm - A simple and lightweight CLI tool for working with the Gemini API using named prompts and shell aliases:

cat error.txt | grep ERROR | summary | kharms
# → Everything has vanished like smoke, the file exists no more.

Cothic

cothic is a Godot 4.6 prototype that turns a real codebase into a cozy, explorable isometric world.

Each repository directory becomes a procedurally generated location: connected islands, beaches, rivers, terrain dressing, file buildings, and directory portals are built from the structure of the selected project. Files can be opened in-game, directories can be traversed through portals or fast travel, and text files can be read in a read-only in-game viewer.

The world combines stylized 3D terrain with detailed 2D sprites, an eight-direction animated hero, roaming wildlife, animated water, and procedural vegetation. A fantasy-inspired reader, map, and path navigation.

Cothic coastline, wildlife, and repository portals Cothic generated village and sheep Cothic fantasy in-game file reader Cothic generated repository city Cothic procedural terrain and roaming wildlife

Zooreader

production/docker/zooreader — A zero-player platform game layered over PDF reading. The protagonist independently traverses platforms and fights enemies as the reader progresses through the page. With an LLM, it can also make brief comments about the page content.

Zooreader zero-player gameplay

Ripples

ripples_cli is a text-based RPG engine powered by Google Gemini. It generates real-time dialogues and interactions based on a static world graph and a dynamic event journal.

Key Mechanics:

  • World Graph: Define your world in DOT format. Vertices (Nodes) serve as Locations or NPCs.

  • Dynamic Edges: The LLM generates available player choices in real-time, effectively creating new edges in the graph.

  • Living Context: Key player actions are recorded and serves as context for future generations.

AI-Assisted Code

Note: Several parts of this repository were generated or assisted by LLMs. Notably:

Purpose

This repository showcases my journey in programming and algorithms. Feel free to explore the code and use it as a reference. All constructive feedback is appreciated!


Contributors

zjgkkn-wq

158 commits

kvladsrc

73 commits

kvladsrc/gym

Codeforces solutions.

1

stars

231

commits

C++

primary language

Sep 7, 2026

updated

README

Algorithmic Playground & Coding Challenges

I find that I don't understand things unless I try to program them.

— Donald Knuth

...What i program, i do not understand either.

This repository is a curated collection of my programming solutions, algorithm experiments, and learning notes on my computer science journey. You'll find both educational implementations and competitive programming solutions.

Note: Code is written for educational purposes, not optimized for production, and may contain errors.

Repository Structure

Codeforces Solutions

cpp/codeforces — Solutions from Codeforces.

Algorithms & Data Structures

cpp/warmup — Educational implementations of core algorithms, data structures and techniques. Tests for this section were written with the help of Gemini CLI.

SICP solutions

lisp/sicp — My first experience in programming.

SICP

Neural Network

neural_network/nn_lib — An educational C++ implementation of a fully connected neural network and backpropagation using only the standard library. It trains on a CPU to about 95% accuracy on MNIST.

Pet Project (Evolutionary Art)

pet_project — An experimental evolutionary algorithm that draws images using pixels, utilizing an ImageNet-trained model as the fitness function. It "evolves" images from random pixels into recognizable shapes.

Granny Smith Indigo Bird Ladybug

Production Infrastructure

production — Production-grade infrastructure managed with GitOps and infrastructure as code. It includes reproducible Bazel builds, CI checks, speculative jobs, gated changes, and single sign-on for deployed services.

PipeLLM

pipellm - A simple and lightweight CLI tool for working with the Gemini API using named prompts and shell aliases:

cat error.txt | grep ERROR | summary | kharms
# → Everything has vanished like smoke, the file exists no more.

Cothic

cothic is a Godot 4.6 prototype that turns a real codebase into a cozy, explorable isometric world.

Each repository directory becomes a procedurally generated location: connected islands, beaches, rivers, terrain dressing, file buildings, and directory portals are built from the structure of the selected project. Files can be opened in-game, directories can be traversed through portals or fast travel, and text files can be read in a read-only in-game viewer.

The world combines stylized 3D terrain with detailed 2D sprites, an eight-direction animated hero, roaming wildlife, animated water, and procedural vegetation. A fantasy-inspired reader, map, and path navigation.

Cothic coastline, wildlife, and repository portals Cothic generated village and sheep Cothic fantasy in-game file reader Cothic generated repository city Cothic procedural terrain and roaming wildlife

Zooreader

production/docker/zooreader — A zero-player platform game layered over PDF reading. The protagonist independently traverses platforms and fights enemies as the reader progresses through the page. With an LLM, it can also make brief comments about the page content.

Zooreader zero-player gameplay

Ripples

ripples_cli is a text-based RPG engine powered by Google Gemini. It generates real-time dialogues and interactions based on a static world graph and a dynamic event journal.

Key Mechanics:

  • World Graph: Define your world in DOT format. Vertices (Nodes) serve as Locations or NPCs.

  • Dynamic Edges: The LLM generates available player choices in real-time, effectively creating new edges in the graph.

  • Living Context: Key player actions are recorded and serves as context for future generations.

AI-Assisted Code

Note: Several parts of this repository were generated or assisted by LLMs. Notably:

Purpose

This repository showcases my journey in programming and algorithms. Feel free to explore the code and use it as a reference. All constructive feedback is appreciated!


See what people are saying

Contributors

zjgkkn-wq

158 commits

kvladsrc

73 commits

Languages

C++

64.2%

Scheme

9.2%

Go

7.6%

GDScript

4.7%

JavaScript

4.3%

HCL

1.4%

TeX

1.2%

Shell

1.1%