Skip to content

Solution to 300. Longest Increasing Subsequence is inefficient #1081

@bcatalfo

Description

@bcatalfo

The python solution here is O(n^2) but can be made O(n log(n)) by replacing the linear search in the inner loop with a binary search. Check out this solution in the discussion.

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