---
title: "#subarray articles | Hashnode"
description: "Explore 8 articles tagged #subarray on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/subarray"
---

Tag

# #subarray

8 posts · 0 followers

[Amaeur sha](https://hashnode.com/@journeytopycodes) · [Dec 7, 2025](https://hashnode.com/posts/subarrays-in-python/69355c822deba755eadffde1)

### [Subarrays in Python](https://jourenytopycodes.hashnode.dev/subarrays-in-python?utm_source=hashnode&utm_medium=feed)

Welcome to Journey to PyCodes and the very first part of my Subarray Series!If you’ve ever looked at a subarray question and felt confused, overwhelmed, or completely lost… trust me, you’re not alone. I was exactly the same. That’s why I created this...

3 min read · [jourenytopycodes.hashnode.dev](https://jourenytopycodes.hashnode.dev/subarrays-in-python?utm_source=hashnode&utm_medium=feed)

[Anja Stricker](https://hashnode.com/@TechPiranja) · [Nov 27, 2025](https://hashnode.com/posts/how-to-solve-leetcode-3381-maximum-subarray-sum-with-length-divisible-by-k/69286e487679df459f329886)

### [How to Solve Leetcode 3381: Maximum Subarray Sum with Length Divisible by k](https://blog.anja-stricker.de/how-to-solve-leetcode-3381-maximum-subarray-sum-with-length-divisible-by-k?utm_source=hashnode&utm_medium=feed)

Understanding Problems. In JS!

3 min read · [blog.anja-stricker.de](https://blog.anja-stricker.de/how-to-solve-leetcode-3381-maximum-subarray-sum-with-length-divisible-by-k?utm_source=hashnode&utm_medium=feed)

[Shahwar Alam Naqvi](https://hashnode.com/@shahwar01) · [Nov 27, 2025](https://hashnode.com/posts/leetcode-subarray-sum-equals-k/69285c46af30df64d2a19a8c)

### [LeetCode: Subarray Sum Equals K](https://is-power-of-two.hashnode.dev/leetcode-subarray-sum-equals-k?utm_source=hashnode&utm_medium=feed)

Problem: https://leetcode.com/problems/subarray-sum-equals-k/description/ Code: class Solution: def subarraySum(self, nums: List\[int\], k: int) -> int: prefix\_count = {0: 1} count = 0 running\_sum = 0 for val in num...

1 min read · [is-power-of-two.hashnode.dev](https://is-power-of-two.hashnode.dev/leetcode-subarray-sum-equals-k?utm_source=hashnode&utm_medium=feed)

[Faiaz Khan](https://hashnode.com/@faiaz001) · [Jul 10, 2025](https://hashnode.com/posts/two-pointers-and-sliding-windows-elegance-in-on/686fbed61b5c472f1cb5dd82)

### [Two Pointers & Sliding Windows: Elegance in O(n)](https://codelikeyoumeanit.hashnode.dev/two-pointers-and-sliding-windows-elegance-in-on?utm_source=hashnode&utm_medium=feed)

Brute force is out. Gliding through arrays is in.

4 min read · [codelikeyoumeanit.hashnode.dev](https://codelikeyoumeanit.hashnode.dev/two-pointers-and-sliding-windows-elegance-in-on?utm_source=hashnode&utm_medium=feed)

[Vishad Patel](https://hashnode.com/@vishadtech09) · [Aug 10, 2024](https://hashnode.com/posts/step-by-step-guide-to-amazing-subarrays-on-leetcode/66b798482200d2d7780e8a87)

### [Step-by-Step Guide to Amazing Subarrays on Leetcode](https://vishad.hashnode.dev/step-by-step-guide-to-amazing-subarrays-on-leetcode?utm_source=hashnode&utm_medium=feed)

Improve Your Leetcode Skills: Step-by-Step Subarray Solutions

3 min read · [vishad.hashnode.dev](https://vishad.hashnode.dev/step-by-step-guide-to-amazing-subarrays-on-leetcode?utm_source=hashnode&utm_medium=feed)

[Vineeth Chivukula](https://hashnode.com/@vineethchivukula) · [Jun 27, 2024](https://hashnode.com/posts/solving-maximum-average-subarray-i/667d05ba552289c091635d9c)

### [Solving Maximum Average Subarray I](https://vineethchivukula.hashnode.dev/solving-maximum-average-subarray-i?utm_source=hashnode&utm_medium=feed)

To see the question, click here. Naive Approach The idea is to calculate the sum of every k consecutive integers and then find the maximum sum, giving us the maximum average. So, maintain two pointers i and j at the first position of the array. i wil...

4 min read · [vineethchivukula.hashnode.dev](https://vineethchivukula.hashnode.dev/solving-maximum-average-subarray-i?utm_source=hashnode&utm_medium=feed)

[Gulshan Kumar](https://hashnode.com/@imgulshan) · [Jun 9, 2024](https://hashnode.com/posts/continuous-subarray-sum/66654093d547ff83335cc4dd)

### [Continuous Subarray Sum](https://perfinsights.hashnode.dev/continuous-subarray-sum?utm_source=hashnode&utm_medium=feed)

Continuous Subarray Sum

2 min read · [perfinsights.hashnode.dev](https://perfinsights.hashnode.dev/continuous-subarray-sum?utm_source=hashnode&utm_medium=feed)

[Ashik Bhuyan](https://hashnode.com/@ashik17) · [Sep 20, 2023](https://hashnode.com/posts/subsequence-substring-subarray/650a94b5d9b04bd6eaca1524)

### [Subsequence Vs Substring Vs Subarray](https://ashik17.hashnode.dev/subsequence-substring-subarray?utm_source=hashnode&utm_medium=feed)

Substring 👍 A substring is a contiguous(continuous) sequence of characters present within a string. It is a string present inside a string.For instance, the substrings of the string “tree” would be:‘t,’ ‘r,’ ‘e,’ ‘tr,’ ‘tre,’ ‘tree,’ ‘re,’ ‘ree,’ ‘e...

2 min read · [ashik17.hashnode.dev](https://ashik17.hashnode.dev/subsequence-substring-subarray?utm_source=hashnode&utm_medium=feed)
