Description
competitive-programming-rs is a collection of algorithm snippets written in Rust, made for solving problems quickly in programming competitions. The author says the snippets are well tested. The data structures section covers a BitSet, Fenwick tree, Fibonacci heap, lazy segment tree, persistent array, segment tree, sparse table, suffix array, treap and union-find tree. The geometry section has routines for circles, convex hulls and the minimum bounding circle. The graph section includes bridge detection, lowest common ancestors, maximum flow, two kinds of minimum cost flow, Bellman-Ford shortest paths, strongly connected components, rerooting and topological sort. The mathematics section covers the Chinese remainder theorem, combinations, cumulative sums, the fast Fourier transform, floor sum, Lagrange interpolation, a max rectangle routine, modular integers and next permutation. For strings there is a rolling hash and the Z algorithm, and a scanner helper is included for reading input. The README links to documentation for the library. The source is public on GitHub.…
Highlights
- Rust snippets for competitive programming
- Data structures such as segment trees and treaps
- Graph algorithms including max flow and strongly connected components
- Math routines such as FFT and Chinese remainder theorem
- String tools: rolling hash and Z algorithm
Ratings & Reviews
No ratings yet
Be the first to rate Competitive Programming RS.
People also visit
Competitive Programming RS FAQ
What is this repository?
A library of algorithm snippets written in Rust, for solving problems quickly in programming contests.
What topics does it cover?
Data structures, geometry, graph algorithms, mathematics, strings, and a scanner for reading input.
Is the code tested?
The README says the snippets are well tested.
Where is the documentation?
The README links to documentation for the library.
Is it open source?
The source is public on GitHub at kenkoooo/competitive-programming-rs.
What are the best Competitive Programming RS alternatives?
Popular alternatives to Competitive Programming RS include Rust Playground, AlgoWiki and Javascript Datastructures Algorithms. See all Competitive Programming RS alternatives





