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

Day 102 #214

Closed
vaskoz opened this issue Dec 2, 2018 · 1 comment · Fixed by #216
Closed

Day 102 #214

vaskoz opened this issue Dec 2, 2018 · 1 comment · Fixed by #216
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented Dec 2, 2018

Good morning! Here's your coding interview problem for today.

This problem was asked by Lyft.

Given a list of integers and a number K, return which contiguous elements of the list sum to K.

For example, if the list is [1, 2, 3, 4, 5] and K is 9, then it should return [2, 3, 4].

@vaskoz vaskoz self-assigned this Dec 2, 2018
@vaskoz vaskoz mentioned this issue Dec 2, 2018
@vaskoz
Copy link
Owner Author

vaskoz commented Dec 2, 2018

I just realized this problem doesn't specify only non-negative integers. I will provide another implementation for handling negative integers.

@vaskoz vaskoz reopened this Dec 2, 2018
@vaskoz vaskoz mentioned this issue Dec 2, 2018
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 a pull request may close this issue.

1 participant