Skip to content

Sublist type clarification #293

@sachpatel

Description

@sachpatel

One of the test cases on in the sublist exercise relates to verifying 'huge sublist not in huge list'.

Maybe the way I have implemented the rest of the functionality for the exercise is not optimal but my solution of traversing a list to verify a sublist makes this test very slow. I did not impose the restriction of the lists being lists of numbers. If I made the exercise treat only numbered lists I believe writing a more optimal check for this test case would be easier.

Would it make sense therefore to specify that this exercise should be for dealing with numbered lists only?
I know the README has examples showing numbered lists but following the list-ops exercise I thought this sublist exercise should be for lists of any type until I hit this particular test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions