Skip to content

London | 25-SDC-July | Eyuel Abraham | Sprint 2 | Linked list implementation.#79

Open
eyuell21 wants to merge 3 commits intoCodeYourFuture:mainfrom
eyuell21:Sprint-2
Open

London | 25-SDC-July | Eyuel Abraham | Sprint 2 | Linked list implementation.#79
eyuell21 wants to merge 3 commits intoCodeYourFuture:mainfrom
eyuell21:Sprint-2

Conversation

@eyuell21
Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • [ X] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • [ x] My changes meet the requirements of the task
  • [ X] I have tested my changes
  • [ X] My changes follow the style guide

Changelist

Linked list implementation.

Questions

No Questions

@eyuell21 eyuell21 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 22, 2026
Comment on lines +48 to +49
node.prev = None
node.next = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of the code on lines 48, 49? Why not do the same to node_to_be_removed in pop_tail()?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made changes according to the review.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jan 23, 2026
Copy link
Copy Markdown

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to change label if the PR is ready to be re-reviewed.

Comment on lines +37 to +38
node_to_be_removed.prev = None
node_to_be_removed.next = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • One of these two statements is optional.

  • Better still, delegate the node removing task (lines 30-38) to remove() -- less code to maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants