This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Problem - 1 | |
# solution of problem - 1 | |
# define a fucntion | |
def subarray_equals_k(nums, k): | |
count = 0 | |
c_s = 0 | |
x = {0: 1} # dictionary | |
for num in nums: |