package
0.0.0-20240403171731-24772ac321a3
Repository: https://github.com/nmn3m/leetcode.git
Documentation: pkg.go.dev
# README
Note
- To solve this problem without modifying the array and using only constant extra space, we can apply the Floyd's Tortoise and Hare (Cycle Detection) algorithm. This algorithm is commonly used to detect cycles in linked lists but can also be adapted to find duplicate elements in an array.