Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Find Start of Cycle

Difficulty: Medium

Acceptance: 57.00%

Points: 30.00

You are given the head of a singly linked list that may contain a cycle. Your task is to return the value of the node where the cycle begins. If there is no cycle, return -1.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = Number of nodes = 105
  • -10? = Node.data = 10?
Companies:
Amazon Microsoft Apple
Topics:
Linked List
Locked Content
Access Restricted: Please Login to access the code editor and test cases.