paint-brush
Daily Coding Problem: Remove the k-th Index From the Linked List in One Passby@nicolam94
603 reads
603 reads

Daily Coding Problem: Remove the k-th Index From the Linked List in One Pass

by Nicola Moro8mJune 26th, 2023
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

We are given a linked list and an index element `k` to remove from the list. After that, we should return the head of the the linked list. We must do all of this in just on pass, meaning that we can not loop over the list more than once. Let's see how!

People Mentioned

Mention Thumbnail
featured image - Daily Coding Problem: Remove the k-th Index From the Linked List in One Pass
Nicola Moro HackerNoon profile picture
Nicola Moro

Nicola Moro

@nicolam94

Developer, math enthusiast, D&D wizard. The first two only in role play games.

L O A D I N G
. . . comments & more!

About Author

Nicola Moro HackerNoon profile picture
Nicola Moro@nicolam94
Developer, math enthusiast, D&D wizard. The first two only in role play games.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite