The test cases don't include the case of more than one only-zeros array. My code works for all the given test cases but fails the case when it's an array of more than one only-zeros e.g. [0, 0, 0].
Understand what the interviewer is asking for by using test cases and questions about the problem. Established a set (2-3) of test cases to verify their own solution later. Established a set (1-2) of ...
現在ITエンジニアとして働いていますが、コーディング・アルゴリズム力をもっと鍛えたいと思い、LeetCodeで学んだ内容をメモ的にアウトプットしています。 今回解いてみた問題は「560. Subarray Sum Equals K」です。 0番目: current_sum = 1, current_sum - k = -8(辞書に ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する