Skip to content

solve: 776.Split BST#47

Open
t9a-dev wants to merge 1 commit intomainfrom
776.Split-BST
Open

solve: 776.Split BST#47
t9a-dev wants to merge 1 commit intomainfrom
776.Split-BST

Conversation

@t9a-dev
Copy link
Copy Markdown
Owner

@t9a-dev t9a-dev commented Jan 16, 2026

問題: 776. Split BST (LINTCODE版)
次に解く問題: 3. Longest Substring Without Repeating Characters
ファイルの構成: ./src/bin/<各ステップ>.rs

Comment thread src/bin/step1.rs
Comment on lines +107 to +108
left_tree.borrow().count_nodes(),
right_tree.borrow().count_nodes(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

一応、ここで再帰が走ってツーパスになっていますね。
もしかすると、上の再帰と合わせてワンパスにして欲しいのかもしれないと思いましたが、私は過剰な最適化と感じます。

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.

2 participants