LeetCode 560 | Subarray Sum Equals K | Solution Explained (Java + Whiteboard)

Publicado el: 27 julio 2020
en el canal de: Xavier Elon
3,005
44

The description reads:
"Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.

Example 1:

Input:nums = [1,1,1], k = 2
Output: 2


Constraints:

The length of the array is in range [1, 20,000].
The range of numbers in the array is [-1000, 1000] and the range of the integer k is [-1e7, 1e7].
Accepted
353,953
Submissions
807,646"


Running Time: O(N)
Space Complexity: O(N)

Always be pluggin:
Slack Channel: https://join.slack.com/t/xavierelonle...
Github: https://github.com/xavierelon1
Facebook:   / xavier.hollingsworth.3  
Instagram:   / xavierelon  
LinkedIn:   / xavier-hollingsworth-524144127  
Twitter:   / elon_xavier  


En esta página del sitio puede ver el video en línea LeetCode 560 | Subarray Sum Equals K | Solution Explained (Java + Whiteboard) de Duración hora minuto segunda en buena calidad , que subió el usuario Xavier Elon 27 julio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,005 veces y le gustó 44 a los espectadores. Disfruta viendo!