9

PROBLEM OF THE DAY: 30/08/2023 | Delete a Node in Single Linked List

 1 year ago
source link: https://www.geeksforgeeks.org/videos/problem-of-the-day-delete-a-node-in-single-linked-list/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Delete a Node in Single Linked List

Hello, everyone. I'm current muscle. Welcome to this video.
August 31, 2023 |910 Views
PROBLEM OF THE DAY: 30/08/2023 | Delete a Node in Single Linked List
Problem of the Day, linked-list, Data Structure and Algorithm
 Save  Share  1 Like
Description
Discussion

Welcome to the daily solving of our PROBLEM OF THE DAY with Karan Mashru. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Linked List but will also help you build up problem-solving skills.

In this video, we are given a singly linked list and an integer x. We are required to Delete xth node from the singly linked list.

Example:

Input: 

1 -> 3 -> 4 

Output: 1 -> 3

Explanation: After deleting the node at 3rd position (1-base indexing), the linked list is as 1 -> 3. 

Give the problem a try before going through the video. All the best!!!

Problem Link: https://practice.geeksforgeeks.org/problems-preview/delete-a-node-in-single-linked-list/1

Solution Function Link: https://ide.geeksforgeeks.org/online-cpp-compiler/5eb2960c-e282-4517-ab96-0f4e36e3efe1

Read More

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK