Skip to content

Bug Report for climbing-stairs #5201

@Nacho2027

Description

@Nacho2027

Bug Report for https://neetcode.io/problems/climbing-stairs

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

I find it incredibly frustrating that this lesson comes right after the “recursion” section in the DS&A course. Naturally, I (as a naive little lamb) tried to solve it using recursion. I understand that the straightforward recursive solution is inefficient, with time complexity O(2^n), but it’s still frustrating for the solution to fail due to a time limit—even when pasting the course’s own recursive approach.

If recursion isn’t an acceptable solution here, then this problem shouldn’t be placed immediately after the recursion section.

@neetcode-gh

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