Skip to content

Detect cycle in a linked list. #62

Description

@RohitShah1706

Given a linked list such that it's edges are numbered as a1, a2, .... an.
The linked list is as follows.
image
Then detect if there is a cycle in the linked list or not.

Expected time complexity ; O(n)
Expected space complexity: O(1).

@anomekumar08 please assign this issue to me under Hacktoberfest 22.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions