rust-lang-ja / ac-library-rs

ac-library-rs is a rust port of AtCoder Library (ACL).
Creative Commons Zero v1.0 Universal
225 stars 27 forks source link

Use `Zero` trait for Fenwick Tree #102

Open TonalidadeHidrica opened 2 years ago

TonalidadeHidrica commented 2 years ago

The Zero trait, originally in internal_type_traits, was moved to a new public module num_traits, so that we do no longer need to specify the additive identity 0 when creating a new Fenwick Tree.

This will help many other improvement be done: