filmov
tv
Insertion at the beginning of Linked list | Python 🐍 for Beginners
Показать описание
00:00 – Insertion at beginning of linked list
01:42 – Pseudo code
In this video, discussing about how to add the element at beginning of linked list. This is to be explain with the help of source code and example. I hope this video is helpful to you.
👉Code for execution:
class Node:
def __init__(self, data):
# Creating nodes
node1 = Node(10)
node2 = Node(20)
node3 = Node(30)
node4 = Node(40)
# Connecting nodes
# Adding a new node at the beginning
head=node1
new_node = Node(50)
head = new_node
► Python For Beginners (Complete Playlist):
Other Subject-wise Playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Computer Networks :
►Design and Analysis of algorithms (DAA):
►Database Management System:
► Theory of Computation
►Artificial Intelligence:
►Computer Architecture:
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Compiler Design:
►Number System:
►Cloud Computing & BIG Data:
►Software Engineering:
►Data Structure:
►Graph Theory:
►Programming in C:
►Digital Logic:
► Class XI Computer Science(Full Syllabus)
► Microprocessor Playlist:
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
#python #pythonprogramming
01:42 – Pseudo code
In this video, discussing about how to add the element at beginning of linked list. This is to be explain with the help of source code and example. I hope this video is helpful to you.
👉Code for execution:
class Node:
def __init__(self, data):
# Creating nodes
node1 = Node(10)
node2 = Node(20)
node3 = Node(30)
node4 = Node(40)
# Connecting nodes
# Adding a new node at the beginning
head=node1
new_node = Node(50)
head = new_node
► Python For Beginners (Complete Playlist):
Other Subject-wise Playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Computer Networks :
►Design and Analysis of algorithms (DAA):
►Database Management System:
► Theory of Computation
►Artificial Intelligence:
►Computer Architecture:
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Compiler Design:
►Number System:
►Cloud Computing & BIG Data:
►Software Engineering:
►Data Structure:
►Graph Theory:
►Programming in C:
►Digital Logic:
► Class XI Computer Science(Full Syllabus)
► Microprocessor Playlist:
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
#python #pythonprogramming
Комментарии