strivedi4u / hacktoberfest2024

This repository is for beginners who want to contribution in open source Hacktoberfest 2024.This project is designed to promote learning and growth in the field of software development. It offers a range of coding challenges and projects that cover various topics, from basic algorithms to complex application development.
Apache License 2.0
87 stars 546 forks source link

Floyd's Algorithm (Tortoise and Hair) #52

Open Speedysays01 opened 1 month ago

Speedysays01 commented 1 month ago

I would be adding the solution to problem 'Detecting cycle in linked list' using tortoise and hair algorithm in C++. It is a very common DSA problem asked in many tech interviews. example: input=> head = [3 , 2 , 0 , -4] pos = 1 output = true Explanation: There is a cycle in this linked list where the tail connects to the 1st node (index 1)

Please assign me this issue under the tag of Hactoberfest2024

Ananyajain2004 commented 2 weeks ago

@strivedi4u please assign me this issue , I can effiiciently add this algorithm in 2-3 programming languages.