Doubly Linked List in Data Structure in Hindi - ???????????? ?????????????????? ??????????????? ???????????? ???????
????????? ?????? ???????????????????????? ??????????????? ?????? ???????????? ??????????????????????????? ????????? ????????? ?????????, ?????? ???????????? Linked List ?????? ???????????? ????????? ???????????? ???????????? ??????????????? ??????????????? ???????????? ?????? ??????????????? ?????? ???????????? ????????? ????????? ???????????? ?????? ?????? ??????-??????????????? ?????? ??????????????? ???????????? ???????????? Doubly Linked List, Linked List ?????? ?????? ?????????????????? ????????? ??????, ?????????????????? ?????? ????????? ?????? ????????? ??????????????? ????????? - ???????????? ?????? ??????????????? ????????? ?????? ???????????? ???????????? ????????? ???????????? ???????????? ?????? ??????????????? ?????????????????? ????????? ??????????????? ?????? ?????????????????? ???????????? ?????? ???????????? ?????????
?????? ??????????????? ????????? ?????? Doubly Linked List ?????? ????????? ???????????? ????????? ?????????????????????, ???????????? ??????????????? ?????? ?????????????????? ?????????????????????, ???????????? ????????????????????? ?????? ????????? ????????????????????? ?????? ????????? ????????? ?????? ???????????? ?????? C ??????????????????????????? ?????? ???????????????????????????
?????????????????? ??????????????? ???????????? ??????? - What is Linked List in Hindi?
Linked List ?????? ???????????? ??????????????????????????? ?????? ?????????????????? ???????????? ?????? ??????????????? ???????????? ?????? ????????? ?????????-????????? ????????? (Node) ??????????????? ???????????? ???????????? ?????? ????????? ?????? ????????? ???????????? ??????:
- Data - ???????????? ?????????????????????
- Pointer - ???????????? ????????? ?????? ?????????
????????? ????????? ???????????? ???????????? ????????????????????? ?????? ????????????, ???????????? ?????? ???????????? ???????????? ???????????? ?????? ???????????? (pointer) ?????? ???????????? ??????????????? ?????????
Linked List ?????? ??????????????? ????????? ?????? ??????????????? ???????????????????????? ???????????? ???????????? ?????? ?????? ????????? ????????? ????????? ??????????????????/??????????????? ???????????? ????????? ??????????????? ??????????????? Direct Access (???????????? array ?????????) ???????????? ????????????, ???????????? ???????????? ?????? ????????????????????? ?????? ???????????? ?????? ????????? ???????????? ???????????? ?????? ???????????????????????? ???????????? ??????????????? ?????????
???????????? ?????????????????? ??????????????? ???????????? ??????? - What is Doubly Linked List in Hindi?
Doubly Linked List ????????? ?????? ????????? ?????? ????????? ?????? ???????????? ???????????? ?????????, ?????? ??????????????? ????????? ?????? ?????? ?????? ?????? ???????????? ????????? ?????? ?????????
- Previous Pointer: ???????????? ???????????? ????????? ?????? ?????????
- Next Pointer: ????????? ???????????? ????????? ?????? ?????????
???????????? ?????? ???????????? ?????? ???????????? ????????? ???????????????????????? ?????? ???????????? ?????????, ????????? ?????? ?????? ???????????? ?????????

???????????? ?????????????????? ??????????????? ?????? ????????? - Advantages of Doubly Linked List in Hindi
- Two-way traversal: ???????????? ?????? ???????????? ?????? ????????????????????? ?????? ?????????????????????, ??????????????? ????????? ?????? ?????????????????? ???????????? ?????? ???????????? ??????
- Easy insertion and deletion: ????????? ????????? ????????? ??????????????????/??????????????? ???????????? ?????????
- Flexibility: ??????????????? ????????? ?????? ?????? ???????????????????????? ???????????? ?????? ???????????? ????????????
???????????? ?????????????????? ??????????????? ?????? ?????????????????? - Disadvantages of Doubly Linked List in Hindi
- Extra memory usage: ?????? ???????????????????????? ?????????????????? ?????? ????????? ?????? ?????????????????? ?????????????????? ???????????? ?????????
- Complex code: Singly Linked List ?????? ?????????????????? ?????????????????? ??????????????? ???????????? ??????????????? ????????????
- Pointer updates: ????????? ??????/??????????????? ???????????? ????????? ??????????????? ?????????????????? ????????? ???????????? ???????????? ????????????
???????????? ?????????????????? ??????????????? ?????? ??????????????? - Applications of Doubly Linked List in Hindi
- Web Browser History Navigation (Back & Forward)
- Undo/Redo Feature in Editors
- Music Playlist Navigation
- Image Slideshow Navigation
???????????? ?????????????????? ??????????????? ?????? ????????? ?????????????????? (C ???????????? ?????????) - Code example of Doubly Linked List (in C language) in Hindi
Input: C
#include
// Node structure
struct Node {
int data;
struct Node* prev;
struct Node* next;
};
// Function to create a new node
struct Node* createNode(int data) {
struct Node* newNode = (struct Node*)malloc(sizeof(struct Node));
newNode->data = data;
newNode->prev = NULL;
newNode->next = NULL;
return newNode;
}
// Function to print the list forward
void displayForward(struct Node* head) {
struct Node* temp = head;
printf("Forward: ");
while (temp != NULL) {
printf("%d ", temp->data);
temp = temp->next;
}
printf("\n");
}
// Function to print the list backward
void displayBackward(struct Node* tail) {
struct Node* temp = tail;
printf("Backward: ");
while (temp != NULL) {
printf("%d ", temp->data);
temp = temp->prev;
}
printf("\n");
}
int main() {
// Create three nodes
struct Node* head = createNode(10);
struct Node* second = createNode(20);
struct Node* third = createNode(30);
// Connect the nodes
head->next = second;
second->prev = head;
second->next = third;
third->prev = second;
// Display the list in both directions
displayForward(head);
displayBackward(third);
return 0;
}
Output of the Program:
?????? ?????? ????????? ???????????? Doubly Linked List ??????????????????????????? ?????? ??????????????????, ?????? ?????????????????? ????????? ?????? ????????? ????????????:
Plain
Forward: 10 20 30
Backward: 30 20 10
Doubly Linked List vs Singly Linked List in Hindi
| Feature | Singly Linked List | Doubly Linked List |
| Traversal Direction | Forward only | Forward & Backward |
| Memory Usage | Less | More (extra pointer) |
| Insertion/Deletion Speed | Moderate | Faster in middle operations |
| Complexity | Simple | Slightly Complex |
???????????????????????? - Conclusion
Doubly Linked List ?????? ????????????????????? ???????????? ??????????????????????????? ??????, ?????? ???????????? ??????????????? ?????????????????? ????????? ???????????? ????????????????????? ???????????? ?????? ?????????????????? ?????????????????? ???????????? ????????? ?????? ?????????????????? ?????? ?????? ???????????????????????????????????? ????????? ?????????????????? ???????????? ??????, ???????????? ??????????????? ?????? ??????????????? ?????? ?????????-???????????? ???????????????????????? ???????????? ?????? ?????? ????????? ????????? ??????????????? ???????????? ????????? ?????????????????????, ???????????? ????????? ??????????????? ?????????????????? ?????????????????? ?????? ????????????????????? ?????? ??????????????? ???????????? ????????? ??????????????? Doubly Linked List ??????????????? ???????????? ???????????????????????????????????? ???????????? ?????? ???????????? ???????????? ?????? ???????????????????????? ????????? ????????? ??????????????????