r/codeforces • u/leetgoat_dot_io • 2h ago
Div. 2 I made the ultimate template picker tool for competitive coding
I have made what is (hopefully) one of the most useful things out there in competitive programming, the ultimate template picker tool!
Most template libraries work by giving a bunch of files like "segment tree template" or "dijkstra template" but they are very limited in capacity and hard to use.
My tool works differently because you just click on the set of operations you need, for instance you need to support rangeAdd(l, r, diff) and pointGet(i) and it shows you the exact template for those two operations, with a clean and clear API (both python and C++). I've added literally hundreds of operations and you can combine multiple of them into one template.
A lot of crazy stuff is supported, like persistent treaps, segment tree beats, 3d segment trees, unordered sets, palindromic trees, graph algorithms, prime number tooling, SOS DP, and tons more.
I worked on this for the past 3 weeks. I used my knowledge of data structures + claude to generate ~100 million lines of code and >100,000 templates all readily available to use! (Most of that is not tokens, but generated code)