You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Author: BHARATHI KANNAN N - Github: https://github.com/bharathikannann, linkedin: https://linkedin.com/in/bharathikannann
2
2
#
3
3
# ## Doubly Linked List
4
4
# - A doubly linked list is a linked data structure that consists of a set of sequentially linked records called nodes. Each node contains three fields: two link fields (references to the previous and to the next node in the sequence of nodes) and one data field.
5
5
# - The two node links allow traversal of the list in either direction.
# Author: BHARATHI KANNAN N - Github: https://github.com/bharathikannann, linkedin: https://linkedin.com/in/bharathikannann
3
2
# ## Linked List
4
3
#
5
-
# - Linked list is a linear collection of data elements whose order is not given by their physical placement in memory. Instead, each element points to the next.<br>
6
-
# - In its most basic form, each node contains: data, and a reference<br>
7
-
# - This structure allows for efficient insertion or removal of elements from any position in the sequence during iteration.<br>
4
+
# - Linked list is a linear collection of data elements whose order is not given by their physical placement in memory. Instead, each element points to the next.
5
+
# - In its most basic form, each node contains: data, and a reference
6
+
# - This structure allows for efficient insertion or removal of elements from any position in the sequence during iteration.
8
7
# - Linked lists are among the simplest and most common data structures. They can be used to implement several other common abstract data types, including lists, stacks, queues, etc..,
# 1. If head is the data to be deleted and if is none return none and if it the element to be deleted
123
99
# change the head to the next of head by using temp node
@@ -534,7 +510,4 @@ def getCountOfValue(self, n):
534
510
2
535
511
Delete entire list
536
512
No element present in the list
537
-
'''
538
-
539
-
540
-
# <big> To refer all of these implementations in java [click here](https://github.com/bharathikannann/Data-Structures-and-Algorithms/blob/master/LinkedList/LinkedList.java) </big>
# Author: BHARATHI KANNAN N - Github: https://github.com/bharathikannann, linkedin: https://linkedin.com/in/bharathikannann
2
2
#
3
3
# ### Queue
4
-
#
5
4
# A queue is a collection of entities that are maintained in a sequence and can be modified by the addition of entities at one end of the sequence and the removal of entities from the other end of the sequence.
6
-
#
7
5
# The operation of adding an element to the rear of the queue is known as `enqueue`, and the operation of removing an element from the front is known as `dequeue`.
0 commit comments