← home

Writing / 63 entries

Code, Solutions
& Discovery.

A public digital garden — bugs, breakthroughs, and the chaos of building things on the web.

↳ interview
clear↓ newest
alldsa34python29interview26leetcode22algorithms16guide11
25
Jun 26, 2025#algorithms#arrays

Check if a Subarray with Zero Sum Exists – Prefix Sum in Action

Understand how to check for a zero-sum subarray using both brute-force and prefix sum techniques, with step-by-step code in Python and JavaScript.

26
Jun 26, 2025#algorithms#arrays

Print All Zero-Sum Subarrays – From Brute-Force to Prefix Hashing

Explore how to find and print all subarrays that sum to zero using both brute-force and efficient prefix-sum + hashmap techniques in Python.

prev04 / 04next