Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

子ノードへのアクセス時のインデックス範囲の確認 #6

Open
coderabbitai bot opened this issue Dec 4, 2024 · 0 comments
Open
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 4, 2024

右の子ノードを取得する際に、i*2 + 2last 以下であることを確認する必要があります。そうでないと、ArrayIndexOutOfBoundsException が発生する可能性があります。\n\n詳しくは以下のプルリクエストとコメントをご参照ください。\n- プルリクエスト: https://github.com/hiroki-horiguchi-dev/learning_algorithm_datastructure/pull/5\n- コメント: https://github.com/hiroki-horiguchi-dev/learning_algorithm_datastructure/pull/5#discussion_r1868801190\n\n報告者: @hiroki-horiguchi-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant