Subarray Sum Equals Target
Given an array of integers and a target value, determine if there exists a contiguous subarray whose sum equals the target.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late August, 2026
Meta
Mid-level
I needed to return boolean value,as follow up asked how i would change code if i needed to return first seen subarray which equals to k.
Early November, 2025
Meta
Mid-level
Given an array of integers nums and a Target, return True if there exists a subarray whose sum equals to target, False otherwise.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.