Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another solution for slice (p18) #9

Closed
wants to merge 2 commits into from

Conversation

quangminhtran
Copy link

No description provided.

VictorNicollet added a commit that referenced this pull request Mar 1, 2017
Improved based on recommendation by @quangminhtran in #9
@VictorNicollet
Copy link
Owner

Hello, thank you for the suggestion ! Based on your commit, I have simplified the solution to the problem while also avoiding the creation of an intermediate list. I have also fixed an issue in your own algorithm, with slice 0 1 having to traverse the entire list despite only needing the first element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants