sukritishah15 / DS-Algo-Point

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
MIT License
952 stars 290 forks source link

Find middle element in a Linked List #30

Open sukritishah15 opened 4 years ago

sukritishah15 commented 4 years ago

🚀 Feature

Given a singly linked list of N nodes. The task is to find the middle of the linked list. For example, if given linked list is 1->2->3->4->5 then the output should be 3. If there are even nodes, then there would be two middle nodes, we need to print the second middle element. For example, if given linked list is 1->2->3->4->5->6 then the output should be 4.

Have you read the Contribution Guidelines?

Yes

Pitch

An easy Linked List Question.

Assignees

@gokulkannan7 - C++ @codewithnick - Python @prophet-x - Java @satwik-chowdary - C

gokulkannan7 commented 4 years ago

@sukritishah15 can I work on this issue?

sukritishah15 commented 4 years ago

@sukritishah15 can I work on this issue?

Sure! But in which programming language - C, C++, Java, Python?

codewithnick commented 4 years ago

i want to do this in python

gokulkannan7 commented 4 years ago

I'll do it in C++

sukritishah15 commented 4 years ago

@gokulkannan7 - C++ @codewithnick - Python Assigned

kamalmulani commented 4 years ago

hey! @sukritishah15 I would like to contribute the solution to this problem in java. So can you please assign it to me.

sukritishah15 commented 4 years ago

@prophet-x - Java assigned

satwik-chowdary commented 4 years ago

Can I do this

satwik-chowdary commented 4 years ago

Can I do this in C++ and python and I can also try it in js

sukritishah15 commented 4 years ago

Can I do this in C++ and python and I can also try it in js

We have assigned this issue already for C++ and Python. We are not accepting code for JS. If you can do it in C, I'll assign it to you directly. Let me know

satwik-chowdary commented 4 years ago

Can I do this in C++ and python and I can also try it in js

We have assigned this issue already for C++ and Python. We are not accepting code for JS. If you can do it in C, I'll assign it to you directly. Let me know

Yeah sure I can do it

sukritishah15 commented 4 years ago

Okay @satwik-chowdary - C Assigned