-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add AVL Tree Data Structure [C] #143
Conversation
avl_tree/c/avl_tree.c
Outdated
} | ||
|
||
Node* newNode(int val) { | ||
Node* temp = (Node*) malloc(sizeof(Node)); |
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.
Using C-style cast. Use reinterpret_cast<Node*>(...) instead [readability/casting] [4]
Origin: CPPLintBear, Section: all.cpp
.
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.
@sangamcse I spotted this when I ran Coala locally, but since this is a C file and that is a CPP specific style guideline, I think it isn't applicable and can be ignored.
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.
@TheGamer007, Include a ignore comment for that.
@sangamcse rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
Implementation includes insertion and deletion operations along with pre-order, post-order and in-order traversals. Closes #47
Automated rebase with GitMate.io was successful! 🎉 |
Implementation includes insertion and deletion operations along with
pre-order, post-order and in-order traversals.
Closes #47
By submitting this pull request I confirm I've read and complied with the
below declarations.
{Tag}: Add {Algorithm/DS name} [{Language}]
, notUpdate README.md
orAdded new code
.After you submit your pull request, DO NOT click the 'Update Branch' button.