---
title: "Discussion on \"Prefix Sum -3\" | Hashnode"
description: "Discussion on \"Prefix Sum -3\". Subarray Sum Equals K (Leetcode 560) – From Brute Force to HashMap\nWhen I saw this problem for the first time, honestly my mind just went:“Okay… subarray sum… let’s check all subarrays!” 😅That’s the brute force approach. Later I found the prefix sum..."
url: "https://hashnode.com/posts/prefix-sum-3/68de7fec82bb60c523bea91a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Prefix Sum -3](https://prefix-sum.hashnode.dev/prefix-sum-3?utm_source=hashnode&utm_medium=feed)

Subarray Sum Equals K (Leetcode 560) – From Brute Force to HashMap When I saw this problem for the first time, honestly my mind just went:“Okay… subarray sum… let’s check all subarrays!” 😅That’s the brute force approach. Later I found the prefix sum...

Oct 2, 2025 · 3 min read · prefix-sum.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#dsa-challenge](https://hashnode.com/tag/dsa-challenge)

## Written by

[Sakshi Sharma](https://hashnode.com/@SakshiSharma45)

@SakshiSharma45

  
[View profile](https://hashnode.com/@SakshiSharma45)

Student

Exploring DSA, one problem at a time - learning, coding, and sharing my journey

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
