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.
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.