110 - Insert a node at a specific position in a linked list | Linked List | Python

preview_player
Показать описание
⭐️ Content Description ⭐️
In this video, I have explained on how to solve insert a node at a specific position in a linked list using loops and simple logic in python. This hackerrank problem is a part of Problem Solving | Practice | Data Structures | Linked Lists | Insert a node at a specific position in a linked list and solved in python. The complexity of this solution is O (n).

Make a small donation to support the channel 🙏🙏🙏:-

#insertanodeataspecificpositioninalinkedlist #howtosolve #hackerrank #hackerranksolutions #hackersrealm #python #linkedlists #problemsolving #tutorial #algorithms #datastructures #programming #coding #codinginterview #education #aswin
Рекомендации по теме
Комментарии
Автор

I was stuck in this problem for more than 5 hrs
Thanks for sloving my problem

bhoopeshmishra
Автор

Hi, why should we return the head pointer. Please explain. Thank you.

Vishnu_Datta_
Автор

sir upload cyclic detection linked list problem and other linked list problem
ASAP

sameerkaushik
Автор

With is logic, after inserting some elements, if I enter position = 0 then, it will insert at position 1 i.e after head. How can I insert a node at position 0?

imv.
Автор

How did u understand the linked list. I want sources or tasks to develop))

asanakhmetov
Автор

What is node need to insert at end? Is this code works?

shravanbommu
Автор

hey, what happens when we dont use the temp variable, like we do head.next instead of temp.next

amitsaurabh
Автор

sir why it throw an error when count =0 ???

devwartkumar
Автор

if run this program in the jupyter notebook and make a class node and class Linked list we got a

rohansingh
Автор

Bro if we take positions ==0
Then element at 0 get exhausted with this logic

bhoopeshmishra
Автор

bhai tere solutions compilation time exceed kar jaatey hai

hulksky
Автор

I was stuck in this problem for more than 5 hrs
Thanks for sloving my problem

bhoopeshmishra