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

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

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

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!
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

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

About Author

Nicola Moro HackerNoon profile picture
Nicola Moro@nicolam94

TOPICS

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