Skip to content

SegTreeをsubscriptableにする #36

Description

@hinamimi

現在、SegTreeでは各要素にアクセスする際にget, setメソッドを用いています。

SegTreeのPythonらしい改善としてリストや辞書等のように、Subscriptableに各要素にアクセスできるとよいと感じました。
具体的には、SegTreeにget, setに対して、__getitem__と__setitem__をエイリアスを追加したらいかがでしょうか。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions