akkupy / codeDump

Drop your code snippets here!
GNU General Public License v3.0
55 stars 245 forks source link

Added Python Programs for Merging two sorted Lists and Finding Middle of LinkedList #588

Closed arun-h closed 1 year ago

arun-h commented 1 year ago

I have added Python programs for two common linked list operations:

  1. Merging Two Lists:

    • Implemented a function to merge two sorted linked lists into a single sorted list.
    • The code is available in the file data_structure/linked_list/merge2lists.py.
  2. Finding Middle of LinkedList:

    • Implemented a function to find the middle node of a linked list. If the list has an even number of elements, it returns the second middle element.
    • The code is available in the file data_structure/linked_list/middleOfList.py.

These additions address the concerns raised in issue #305