cheran-senthil / PyRival

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

add_binTrie.by #86

Closed MohamedHamed12 closed 1 year ago

bjorn-martinsson commented 1 year ago

It would probably be nice to add a binary trie implementation to Pyrival for maximizing xor. But this implementation is just not good enough.

Btw one fundamental error in your implementation is that you claim that max_and and max_or run in O(log n) time, which is simply not true. I'm not even sure that it is possible to make a data-structure that support max_and and max_or in O(log n) time.