-
- Notifications
You must be signed in to change notification settings - Fork 7.7k
Skip list #941
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
Skip list #941
Conversation
| This pull request introduces 1 alert when merging f13964c into 5baf1ad - view on LGTM.com new alerts:
|
| Can someone tell me why is it failing? |
| This pull request introduces 1 alert when merging 2fb95a2 into 5baf1ad - view on LGTM.com new alerts:
|
| This pull request introduces 1 alert when merging 910180f into 5baf1ad - view on LGTM.com new alerts:
|
| @kvedala I have this error "Consider using rand_r(...) instead of rand(...) for improved thread safety", but when I switch to rand_r windows tests fail (even though I include #include library). Could you tell me how can I resolve this? |
| This pull request introduces 1 alert when merging 8e99383 into 5baf1ad - view on LGTM.com new alerts:
|
For more info, please refer to existing code in the repo for reference. There are many programs that use the above functions and should help you learn how to best use them. Let me also give you a heads up about the documentation standards - we use Doxygen to autogenerate the website - https://thealgorithms.github.io/C-Plus-Plus |
| Please also enable GitHub Actions in your fork so that the auto tools can help auto-format the code for you |
Thank you, I've polished code following C++ standards |
| This pull request introduces 1 alert when merging 5068ddc into 5baf1ad - view on LGTM.com new alerts:
|
☝️ |
kvedala left a comment
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.
Apart from the suggested changes and possible sources of errors, the code lacks proper memory management.
Execution leads to segmentation faults as shown in the screenshot. Please re-assess the code and try to address the concerns.
Thank you for your contribution. Looking to see the corrections and a working code.

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
| Hello, @kvedala I merged commits as you told me. |
data_structures/skip_list.cpp Outdated
| void* value; | ||
| // Forward Array points to the neighbour (right) | ||
| // nodes of the given one in all levels | ||
| vector<Node*> forward; |
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.
Class variables still not commented correctly. Please refer the following
| Thank you. Much has been resolved. Just the class member variables are not documented per standard. |
| Doc fixes look good 👍 |
Yeah, I have no idea why, I just changed comments |
Thank you for your tries and contribution, I'll for it to my branch and fix it further by myself. Your commits will retain your history so that you get due credit for your work. |
Okay. Good luck |
ayaankhan98 left a comment
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.
LGTM



Description of Change
Checklist
Notes:
Skip List is very useful data structure for searching in sparse and big data.