pub struct SparseTable { /* private fields */ }Expand description
A simple sparse table for O(1) range-minimum queries (RMQ).
Build time: O(n log n). Query time: O(1). Works for idempotent operations (min, max, gcd).
Implementations§
Auto Trait Implementations§
impl Freeze for SparseTable
impl RefUnwindSafe for SparseTable
impl Send for SparseTable
impl Sync for SparseTable
impl Unpin for SparseTable
impl UnsafeUnpin for SparseTable
impl UnwindSafe for SparseTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more