From 2a0dd0626336f69208a19ef32759cd3ca9713cb4 Mon Sep 17 00:00:00 2001 From: Sanat Kumar Gupta <123228827+SKG24@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:11:03 +0530 Subject: [PATCH] Update Intersection_Linked_list_python.md I have made three changes as per review. --- docs/linked-list/Intersection_Linked_list_python.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/linked-list/Intersection_Linked_list_python.md b/docs/linked-list/Intersection_Linked_list_python.md index be9b3fdb9..797277d5d 100644 --- a/docs/linked-list/Intersection_Linked_list_python.md +++ b/docs/linked-list/Intersection_Linked_list_python.md @@ -1,5 +1,5 @@ --- -id: Intersection_Linked_lists_python +id: intersection-linked-lists-python sidebar_position: 1 title: "Find the Intersection Point of Two Linked Lists in Python using hash set" description: "This tutorial explains how to find the intersection point of two singly linked lists using Python." @@ -17,8 +17,8 @@ In a linked list, the intersection of two lists occurs when two linked lists sha Consider the following two linked lists: -- **List A**: 1 -> 2 -> 3 -- **List B**: 4 -> 5 +- **List A**: `1 -> 2 -> 3` +- **List B**: `4 -> 5` - Both lists intersect at the node with value `3`. The expected output in this case is: @@ -93,4 +93,5 @@ if __name__ == "__main__": if intersection: print(f"Intersection at node with value: {intersection.val}") else: - print("No intersection") \ No newline at end of file + print("No intersection") +``` \ No newline at end of file