UTSAVS26 / PyVerse

PyVerse is an open-source collection of diverse Python projects, tools, and scripts, ranging from beginner to advanced, across various domains like machine learning, web development, and automation.
https://sites.google.com/view/pyverse-python-universe/
MIT License
72 stars 200 forks source link

[Code Addition Request]: Middle of Linked List #1087

Open SKG24 opened 5 hours ago

SKG24 commented 5 hours ago

Have you completed your first issue?

Guidelines

Latest Merged PR Link

https://github.com/UTSAVS26/PyVerse/pull/1079#event-15113087781

Project Description

Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Input: head = [1,2,3,4,5] Output: [3,4,5] Explanation: The middle node of the list is node 3.

Idea is to use two pointer fast and slow to find the middle node

Full Name

Sanat Kumar Gupta

Participant Role

gssoc-ext

github-actions[bot] commented 5 hours ago

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!