← TCS questions
CodingReported in a candidate post, Apr 2024

Find all subarrays with sum equal to K

Filed under TCS

Given an array of integers and an integer K, find the total number of continuous subarrays whose sum equals K. The solution must handle potential input parsing issues where delimiters might not be…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.