Skip to content

108. Convert Sorted Array to Binary Search Tree#23

Open
hemispherium wants to merge 1 commit into
mainfrom
0108-convert-sorted-array-to-binary-search-tree
Open

108. Convert Sorted Array to Binary Search Tree#23
hemispherium wants to merge 1 commit into
mainfrom
0108-convert-sorted-array-to-binary-search-tree

Conversation

@hemispherium
Copy link
Copy Markdown
Owner

@hemispherium hemispherium self-assigned this Apr 15, 2026
*/
class Solution {
public:
TreeNode* build(vector<int>& nums, int left, int right) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このメソッドをprivateにして、最初の引数をconst&にするぐらいですかね。
あとは、iterativeに書き直せると良いかと思いました。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

承知しました!


### step2

変更点なし。
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

まずは下記を取り組んでいるところですかね?
https://discord.com/channels/1084280443945353267/1366778718705553520/1450943270799671337

参考にしたGitHubのURLや、docsのリンクを貼っておく、あるいは思考をまとめておくと良いと思いました。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

承知しました!

@liquo-rice liquo-rice mentioned this pull request May 1, 2026
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

Successfully merging this pull request may close these issues.

3 participants