Implementations
Clean minimalist implementations of popular competitive programming algorithms
Install / Use
/learn @algorithmica-org/ImplementationsREADME
algo
The snippets you are asked to code way too often in competitive programming.
Code is intentionally simplified (no references, templates, inheritance, try-catches or stuff like that) so that you do not need to read a 300 pages long book to understand it. You are supposed to just copy and paste it during contest with minimal changes.
Use at your own risk. I am pretty sure it at least compiles, but may contain minor bugs.
Pull requests are welcome, since I do not do contests so actively anymore.
TODO:
- convex hull (!)
- half-plane intersection
- dinic's algorithm
- long arithmetic
- bridge finding (!)
- minimum spanning tree
- sqrt decomposition (!!)
- string hashing
- kth element in O(n)
- bitset Gauss, bitset matmul (!)
- better FFT or fast Karatsuba
- persiistent data structures (!!)
- dynamic connectivity (!)
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
