Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4.7k
Update stack_using_linked_lists.c#620
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Added comments and time complexities.
Uh oh!
There was an error while loading.Please reload this page.
Shwetik 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.
Changes made.
| voidpush(structnode*p) | ||
| /** | ||
| * push function will add a new node at the head of the list, time complexity O(1). |
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.
Missing parameter documentation.
Same in other parts of the code.
Shwetik 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.
Changes made.
| intitem; | ||
| structnode*temp; | ||
| temp= (structnode*)malloc(sizeof(structnode)); | ||
| temp= (structnode*)malloc(sizeof(structnode)); |
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 remove this empty whitespace.
Same in other parts of the code.
| temp= (structnode*)malloc(sizeof(structnode)); | |
| temp= (structnode*)malloc(sizeof(structnode)); |
Shwetik 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.
Whitespaces removed.
Panquesito7 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, good work. 👍 😄
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
Description of Change
Added comments and time complexities.