Skip to content

[FEATURE] Merge Sort Tree #2824

@fffelix-huang

Description

@fffelix-huang

Detailed description

A merge sort tree data structure, which supports the following operations:

  • $[l, r, k]$: Count number of elements $< k$ (could be replaced with $\leq, >, \geq$) in $a_l, a_{l+1}, \dots, a_{r}$ in $O(\log^2 n)$.

Context

Please assign this to me under hacktoberfest.

Possible implementation

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleAuthor has not responded to the comments for over 2 weeks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions