Skip to content

Bug Report for longest-consecutive-sequence #4987

@abhishekshenoy

Description

@abhishekshenoy

Bug Report for https://neetcode.io/problems/longest-consecutive-sequence

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

All 3 solutions fail with incorrect response for an input Array of {3,2,4}

The longest subsequence lenght should be 0 but all the solutions give response as 3. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions