Home
Projects
Resources
Alternatives
Blog
Sign In
PyRival
Save
⚡ Competitive Programming Library
Overview
Versions
Reviews
Resources
Project README
PyRival
A Python Library for Competitive Programming
Developers
Mukundan314
pajenegod
drd93
algmyr
meooow
tfg
sgtlaugh
abertell
Templates
The
Master Template
works with all versions of Python and has Python 3 behaviour.
Version Specific Templates:
PyPy 2
,
Python 3
Tools
Interactive Runner
Stress Tester
Snippets
Algebra
(Multivariable) Chinese Remainder Theorem
Discrete Logarithm
LCM and GCD
Integer Factorization
Fast Fourier Transform
Fast Subset Transform
Number Theoretic Transform
Deterministic Miller-Rabin Primality Test
Tonelli–Shanks Algorithm
Generalized Modular Inverse
Euler's Phi Function
Primitive Root
Sieve of Eratosthenes
Data Structures
Bit Array
Binary Indexed (Fenwick) Tree
Fractions
Continued Fractions
Disjoint-Set (Union Find) Data Structure
Generic Nodes
Linked List
Range Query Data Structure
(Lazy) Segment Tree
Persistent Segment Tree
Sorted List
Treap
Trie Tree
2-satisfiability Template
Geometry
Convex Hull
Line Functions
Polygon Functions
Vector Functions
Graphs
Bellman-Ford Algorithm
Breadth First Search
Connected Components Search
Brent's Algorithm for Cycle Detection
Depth First Search
Dijkstra's Algorithm
Eulerian Path
Path Constructor
Floyd-Warshall Algorithm
Bipartite Graph Check
Kruskal's Algorithm with Disjoin Set Union
Prim's Algorithm
Tarjan's Algorithm
Topological Sorting
Combinatorics
General Purpose Numbers
Lucas's Theorem
Partition Function
Linear Algebra
Matrix Arithmetic, Exponentiation, Determinant, and Inverse
Gaussian Elimination
Multivariable Chinese Remainder Theorem
Numerical
Linear Recurrence Template
Hill Climbing Algorithm
Approximate Integration
Polynomial Interpolation
Integer Roots
Binary Search
Strings
Knuth–Morris–Pratt Algorithm
Longest Common/Palindromic Subsequences
Longest Common Substring
Longest Palindromic Substring
Manacher's Algorithm
Lydon Factorization
Z Algorithm
Misc
bootstrap for recursion
FastIO
heapq
sorted
py3k compatibility tools
random
str.split for whitespace
Bit Hacks
32-bit Modular Arithmetic
Memoize Decorators
C++ syle cout
Interactive Runner
Stress Tester
Alpha–Beta Pruning
Longest Increasing Subsequence
K-th Order Statistic
Open Source Agenda is not affiliated with "PyRival" Project. README Source:
cheran-senthil/PyRival
Stars
1,105
Open Issues
11
Last Commit
1 month ago
Repository
cheran-senthil/PyRival
License
Apache-2.0
Homepage
https://pyrival.readthedocs.io/
Tags
Algorithms
Competitive Programming
Data Structures
Python
Open Source Agenda Badge
Submit Review
Review Your Favorite Project
Submit Resource
Articles, Courses, Videos
Submit Article
Submit a post to our blog
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github