Skip to content
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

Added Code remove_kth_node_from_end.cpp #6017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added Code remove_kth_node_from_end.cpp #6017

wants to merge 1 commit into from

Conversation

shashank-100
Copy link

Fixes issue:
#6016

Changes:

Copy link

@bhavanasa bhavanasa left a comment

Choose a reason for hiding this comment

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

Where is the actual node being deleted?
How about the case of n==k?

Copy link

@bhavanasa bhavanasa left a comment

Choose a reason for hiding this comment

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

Instead of calculating the length of the list, can you use fast and slow pointers and solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants