-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
docs: add comments and explanation to binary_search_tree.cpp data_structures #891
Closed
Closed
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
a702702
docs: add comments and explanation to binary_search_tree.cpp data_str…
7b53dda
formatting source-code for a70270287c018f6a6fcd8a398d5d6bacda5f1190
8d4bcc8
Merge branch 'master' into main
liushubin-gitHub f377860
test: add test for binary_search_tree.cpp data_structures
liushubin-gitHub 3e8b19f
formatting source-code for f377860175a572d585f402912ae3986e5d044600
6b10a56
Update binary_search_tree.cpp
liushubin-gitHub dba2daf
test: add test for binary_search_tree.cpp data_structures
6910ca5
formatting source-code for dba2daf3425d648feb8ea04b435ce5dcc8e69ebc
4f62e91
fix: modify BFT() breath first search a tree
49ccaa6
formatting source-code for 4f62e91ef83b387fb68bf9bf0d3e9fc42a8b55e0
cf8917e
fix:free memory for auto test case
liushubin-gitHub 9dafdfa
formatting source-code for cf8917e442723333efd6881e68fed934ef384168
c56b749
fix:use a pointer instead a non-const reference
liushubin-gitHub 8e73926
fix code format auto test erros.
liushubin-gitHub 12cbebc
formatting source-code for 8e73926f74b04086c1d40666aa08bb8fd4d0328a
e8033e3
fix:code format errors. part01
liushubin-gitHub 1168770
formatting source-code for e8033e3db7dde6d206513ad3f2401e807ce11aaf
fa4fc23
use smart pointer.
liushubin-gitHub 832934d
formatting source-code for fa4fc234c5c1bb090afa171faffcc0616e843334
cd80e82
use smart uniq_ptr
liushubin-gitHub 6091828
formatting source-code for cd80e82567f7baac032695763eee8b7aabcad8d0
7756544
fix clang-tixy errors
kvedala 67a5471
formatting source-code for 77565449f258e0cd16ee867a81590e3e9c758efc
9c5ab6d
organize code using namespaces
kvedala c1ab5ca
formatting source-code for 9c5ab6d955ed7b048dd4abfb31e82f8cbe7bb9df
bbbd574
reset smart pointer to release memory auto.
55d9ca7
fix:optimize Remove() function to use smart pointer.
f322675
formatting source-code for 55d9ca73a453770cf5b587d7fcbab4b9679a9d16
b5c8218
fix:auto test compile error.
511763a
formatting source-code for b5c821874e798836fd866fa883d06b320a050207
4b1c983
fix:auto test compile error v2.
0464553
formatting source-code for 4b1c9832d2f55151bc6eb4941e7bb7f1414f8870
481a382
formatting source-code for cd80e82567f7baac032695763eee8b7aabcad8d0
a4e9cd3
fix: nullptr special case when Remove a node dosen't exit.
liushubin-gitHub 182de88
fix: add nullptr check.
liushubin-gitHub 3f360b1
fix: add nullptr check v2.
liushubin-gitHub 980a49c
formatting source-code for 3f360b18593b6d9694fcc12c07fa29cfe368c5bb
15fee70
optimize Remove() function .
6de45e7
Update binary_search_tree.cpp
liushubin-gitHub 2852735
formatting source-code for 6de45e7553cae37b2cbfec2c6d60960eef1d27ea
55435a2
Update binary_search_tree.cpp
liushubin-gitHub d51dfff
prompt message optimize.
fb5971d
formatting source-code for d51dfff1bd5f8cf96d5e2ee593b90ed4bf025d39
adb42e4
optimize Insert() function as review suggestion.
liushubin-gitHub 2e13fd6
formatting source-code for adb42e42c6412d56f91fe27e1f2f5906ca98cb55
051bc1b
Revert "optimize Insert() function as review suggestion."
19bdd29
optimize Insert() Remove() function to use const reference.
liushubin-gitHub 0d844ff
formatting source-code for 19bdd2911faa63a702955caa30c22f6b3a0e939a
0932f88
Revert "optimize Insert() Remove() function to use const reference."
liushubin-gitHub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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 consider the changes for the insert function which i suggested earlier.
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.
yes.i try early.but auto format checker failed.
you can get in commit:
adb42e4
so.i revert to last good code.
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.
@liushubin-gitHub what was the actual error? is removing the code is only the solution?
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.