Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added max_sum_bst.py #11832
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
Added max_sum_bst.py #11832
Changes from 19 commits
6029b30
0d53dea
2c98313
a5d835e
ec766f3
822df1d
e8f1d4e
21dc6d9
0aea0f2
0a58155
421e92f
25a7ee6
f42bca1
c5b03b6
6179a8a
3f3caff
ad04568
07e9c50
3be3064
ff65aa3
c2f438d
410e737
005205d
b932346
3aea631
55dd178
e62a5fb
47ac98b
cf1e92a
318fd22
f1c5829
cbc759b
450f10a
2baf142
906527f
50aec67
e10b4e3
a946077
4852473
136cdec
e0b6bf0
40d8653
1534755
923a307
a1d76c6
ac0709d
e74d24e
af00d57
7d1f92a
bae1df8
c2a62d9
8df7748
cb2d96e
b2ebccd
d290a9c
95c9f15
619aef8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 6 in data_structures/binary_tree/maximum_sum_bst.py
Ruff (I001)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this a https://docs.python.org/3/library/dataclasses.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/binary_tree_traversals.py#L10 for a working example.
Check failure on line 45 in data_structures/binary_tree/maximum_sum_bst.py
Ruff (UP007)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there is no test file in this pull request nor any test function or class in the file
data_structures/binary_tree/maximum_sum_bst.py
, please provide doctest for the functionsolver