cheran-senthil / PyRival

⚡ Competitive Programming Library
https://pyrival.readthedocs.io/
Apache License 2.0
1.17k stars 312 forks source link

Restructure into python package #23

Closed Mukundan314 closed 5 years ago

cheran-senthil commented 5 years ago

Perhaps we can add namespace for some of the functions like fft, ntt instead of directly calling.

Mukundan314 commented 5 years ago

Problems

Problem

cumsum2d uses global vars

Possible Solutions


Problem

nCr_p does pre-computations based on mod this makes changing the mod not possible

Possible Solutions


Problem

Hashing class uses global mod.

Possible Solutions


Problem

ntt contains global vars dependent on the mod

Possible Solutions


Problem

Modular import is not possible