Skip to content

[FEATURE]Delete without head pointer #1069

@rakshaa2000

Description

@rakshaa2000

You are given a pointer/ reference to the node which is to be deleted from the linked list of N nodes. The task is to delete the node. Pointer/ reference to the head node is not given.

Detailed Description

You only need to complete the function deleteNode that takes reference to the node that needs to be deleted. The printing is done automatically by the driver code.

Context

I had encountered this algorithm in multiple coding contests and it intrigued me. I wanted to share this awesome algorithm.

Possible Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions