We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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].
[1, 2, 3, 4, 5]
9
[2, 3, 4]
The text was updated successfully, but these errors were encountered:
I just realized this problem doesn't specify only non-negative integers. I will provide another implementation for handling negative integers.
Sorry, something went wrong.
vaskoz
Successfully merging a pull request may close this issue.
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 is9
, then it should return[2, 3, 4]
.The text was updated successfully, but these errors were encountered: