-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Bug Report for https://neetcode.io/problems/subarray-sum-equals-k
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
The optimal O(n) solution (coded in Go) fails one of the test cases with an "empty" output:
I presume this is because the program is being killed before it has a chance to finish (experience with other Go submissions in the past). But this is literally a re-implementation of the given solution with different variable names. For the record, I also tried the provided solution verbatim and it didn't pass.
I think the timeout for this problem has to be tuned. Even my initial O(n^2) attempt was accepted on LeetCode, but as not accepted on neetcode.
Metadata
Metadata
Assignees
Labels
No labels